Skip to content

fix: interactive_only hint omits --resume for non-resume-safe commands (#829)#3203

Merged
code-yeongyu merged 1 commit into
mainfrom
fix/interactive-only-resume-hint-829
May 29, 2026
Merged

fix: interactive_only hint omits --resume for non-resume-safe commands (#829)#3203
code-yeongyu merged 1 commit into
mainfrom
fix/interactive-only-resume-hint-829

Conversation

@code-yeongyu
Copy link
Copy Markdown
Collaborator

Fixes ROADMAP #829.

Before: claw --output-format json /commit hint → "use claw --resume SESSION.jsonl /commit" (wrong — /commit is not resume-safe)
After: claw --output-format json /commit hint → "Start claw and run it there."

Resume-safe commands like /diff still suggest --resume in the hint.

Root cause: Generic interactive_only format string always appended --resume regardless of whether the command appears in resume_supported_slash_commands().

Tests: 2 new tests. 572 pass.

#829)

Commands like /commit, /pr, /issue, /bughunter, /ultraplan are
interactive-only and NOT resume-safe. Previously the generic
interactive_only error always suggested 'claw --resume SESSION.jsonl
/commit', which would just re-trigger interactive_only.

Fix: check commands::resume_supported_slash_commands() in the
SlashCommand::Ok(Some(cmd)) arm. Resume-safe commands get the full
--resume suggestion; non-resume-safe commands only say 'Start claw'.

Also update two existing unit tests whose assertions checked for the old
'interactive-only' substring (now 'interactive_only:' prefix).

Two new integration tests:
- non_resume_safe_interactive_only_hint_omits_resume_suggestion
- resume_safe_interactive_only_hint_includes_resume_suggestion

572 tests pass, 1 pre-existing worker_boot failure unrelated.
@code-yeongyu code-yeongyu force-pushed the fix/interactive-only-resume-hint-829 branch from 9104005 to f5f2b4e Compare May 29, 2026 07:53
@code-yeongyu code-yeongyu merged commit ac5b19d into main May 29, 2026
6 checks passed
@code-yeongyu code-yeongyu deleted the fix/interactive-only-resume-hint-829 branch May 29, 2026 07:56
@1716775457damn
Copy link
Copy Markdown

Nice fix — the generic interactive_only hint was misleading for non-resume-safe commands. Separating the hint logic based on resume_supported_slash_commands() is the right approach. Good to see this landed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants