summaryrefslogtreecommitdiff
path: root/src/dump.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/dump.zig')
-rw-r--r--src/dump.zig11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/dump.zig b/src/dump.zig
index 566cf03c..37ba83c0 100644
--- a/src/dump.zig
+++ b/src/dump.zig
@@ -42,7 +42,16 @@ pub const max_panes: usize = 16;
pub const max_cols: usize = 6;
/// Bounds the only user-editable, schema-owned tag fragment. Keep this beside
/// the dump limits so readers can reject data before copying it into a pane.
-pub const max_tag_tail: usize = 4096;
+/// It IS the storage bound: `Pane.tag_tail` is `[max_tag_tail]u8`, and every
+/// writer (appendTag, tagInsert, restoreDumpTail, the acmefs `tag` file)
+/// refuses input that does not fit rather than truncating it, so the schema
+/// limit and the buffer can never disagree.
+///
+/// 512 on the P4 firmware. A tag is ONE line — a pane's path plus its command
+/// words — and 4 KiB of it is 4 KiB per pane out of a 384 KiB heap. A serial
+/// console is 80 columns; 512 is six of those.
+pub const max_tag_tail: usize =
+ if (@import("pardes_config").platform == .p4) 512 else 4096;
/// Output arguments are typed in the same bounded one-line tag storage. Keep
/// the schema limit named independently so a dump reader can validate it
/// without importing the output-pane implementation.