You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
message-write: bracketed paste should be opt-in per measured harness, not the default for every unlisted app #1653
PR #1644 (issue #1567) made writeStrategyForApp(app) return BRACKETED_PASTE for every app except agy. Bracketed paste was measured on claude and codex only. Any harness that is added later — or that simply has no gate profile yet — silently inherits an untested paste mode. If the harness does not honour ESC[200~/ESC[201~, the markers land as literal text and every line submits separately, which is worse than the truncation the PR fixed.
Surfaced by the pir-1620 (Kimi) lane while re-deriving against main: registering KIMI_PROFILE would have opted Kimi into bracketed paste with no code that knows Kimi exists. Related: PASTE_ENTER_DELAY_MS = 80 is exactly the Enter delay Kimi's bisect showed is swallowed (80/100 ms lost, 120+ submit), so the per-harness MessagePacing.enterDelayMs override must govern the paste path's Enter too — the Kimi lane handles that half; this issue is the default.
Fix (BUGFIX)
writeStrategyForApp returns BRACKETED_PASTE only for an explicit allowlist of measured apps (claude, codex), and PLAIN_CHUNKED for everything else including unknown/undefined. The docstring already prescribes "until measured".
The allowlist lives next to the gate profiles so adding a harness forces the question.
Test: an unknown app resolves to PLAIN_CHUNKED; agy unchanged; claude/codex bracketed.
Keep the plain-chunked path's ≤512-byte chunking (the kernel-split fix) so unlisted harnesses are still protected from head loss.
Closing per the owner's decision: bracketed paste stays the default for every harness. If a harness does not honour the markers they arrive as harmless stray text, which is an acceptable failure mode; the Kimi lane (#1620) keeps Kimi on the default and measures it live via Mohid's handoff checklist. The per-harness Enter-delay override remains the one Kimi-specific requirement.
Activity
waleedkadous commentedon Sep 8, 2026
Closing per the owner's decision: bracketed paste stays the default for every harness. If a harness does not honour the markers they arrive as harmless stray text, which is an acceptable failure mode; the Kimi lane (#1620) keeps Kimi on the default and measures it live via Mohid's handoff checklist. The per-harness Enter-delay override remains the one Kimi-specific requirement.
[PIR cluesmith#1620] Owner decision: Kimi keeps the default bracketed…