fix(gateway): /compress argument dispatch is wrong in three ways #605

Closed
opened 2026-10-27 13:37:00 +00:00 by sam · 0 comments
Owner

session_commands.go:460-478, all CONFIRMED by execution:

  1. Bare /compress can never apply. isPreview is 'len(fields) == 0 || --preview || --dry-run', so /compress with no arguments takes the preview branch -- and compressPreview ends with 'Run /compress to apply'. The command tells the user to run a command that does nothing, forever. The failure-safe ReplaceMessages path added by archie-core-0ua is unreachable via the documented command; only '/compress here ' reaches it.

  2. /compress focus silently ignores the topic. focus is validated for arity only; cfg is never modified, so it runs a full default compression and reports success. Irreversible history rewrite from a command the user believes does something narrower.

  3. /compress here (no N) and any unrecognised argument (/compress asdf) fall through to a full default compression rather than printing usage, unlike the sibling focus branch.


Imported from beads archie-core-1786637491830-78-20363259 · GitHub #99 · type bug · priority P2 · created 2026-08-08 · closed 2026-08-08

session_commands.go:460-478, all CONFIRMED by execution: 1. Bare /compress can never apply. isPreview is 'len(fields) == 0 || --preview || --dry-run', so /compress with no arguments takes the preview branch -- and compressPreview ends with 'Run /compress to apply'. The command tells the user to run a command that does nothing, forever. The failure-safe ReplaceMessages path added by archie-core-0ua is unreachable via the documented command; only '/compress here <N>' reaches it. 2. /compress focus <topic> silently ignores the topic. focus is validated for arity only; cfg is never modified, so it runs a full default compression and reports success. Irreversible history rewrite from a command the user believes does something narrower. 3. /compress here (no N) and any unrecognised argument (/compress asdf) fall through to a full default compression rather than printing usage, unlike the sibling focus branch. --- _Imported from beads `archie-core-1786637491830-78-20363259` · GitHub #99 · type bug · priority P2 · created 2026-08-08 · closed 2026-08-08_
sam added the mediumbug labels 2026-10-27 13:37:00 +00:00
sam self-assigned this 2026-10-27 13:37:00 +00:00
sam closed this issue 2026-10-27 13:37:00 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sam/archie#605