Skip to content

fix(coding-agent): route idle extension slash commands#27

Merged
code-yeongyu merged 1 commit into
mainfrom
codex/fix-sessions-command
May 26, 2026
Merged

fix(coding-agent): route idle extension slash commands#27
code-yeongyu merged 1 commit into
mainfrom
codex/fix-sessions-command

Conversation

@code-yeongyu
Copy link
Copy Markdown
Owner

@code-yeongyu code-yeongyu commented May 26, 2026

Summary

  • route idle builtin extension slash commands through the extension session prompt path
  • keep adjacent slash commands such as /resume on the normal command path
  • skip fully malformed empty session logs in the session observer scanner

Root Cause

The interactive submit handler only dispatched extension commands while another response was streaming or compaction was active. When idle, /sessions fell through as regular user input, so the picker never opened.

Validation

  • targeted regression suite: npx tsx ../../node_modules/vitest/dist/cli.js --run test/suite/session-observer-scanner.test.ts
  • full repository check: npm run check
  • manual TUI QA for valid, empty, malformed, and adjacent /resume session states

Summary by cubic

Fixes idle routing for extension slash commands so /sessions opens the picker even when no response is streaming. Also ignores malformed session logs and keeps adjacent commands like /resume on the normal path.

  • Bug Fixes
    • Route idle extension commands via the extension session prompt in InteractiveMode (preserves history and clears input).
    • Skip empty or malformed session logs in the session scanner to avoid blocking the picker.
    • Maintain pass-through for non-extension or adjacent slash commands (e.g., /resume, unknown commands).
    • Added tests for picker open, empty state, malformed files, and command pass-through.

Written for commit 896b957. Summary will update on new commits. Review in cubic

@code-yeongyu code-yeongyu merged commit 3d8f635 into main May 26, 2026
3 checks passed
@code-yeongyu code-yeongyu deleted the codex/fix-sessions-command branch May 26, 2026 07:27
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.

1 participant