[codex] Refactor heartbeat slash command module#32
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Completes the M5 slash-command migration slice by moving heartbeat commands into core modules and isolating the TUI-only debug snapshot command outside core.
Changes include:
src/core/commands/slash/modules/heartbeat/heartbeat-commands.tsfor/heartbeat tasks,/heartbeat task,/heartbeat runs,/heartbeat run, and/heartbeat continue.SlashCommandExecutionContextand wired the TUI adapter tocreateFileHeartbeatTaskStore.src/cli/chat/commands/debug-snapshot-command.tsso/debug tui-snapshotis registered from the TUI layer rather than core.local-commands.tsto compatibility exports, composed hints, autocomplete,/help, and registry orchestration.Impact
Heartbeat command behavior is now reusable through the core slash registry while keeping store access host-supplied. The TUI-only debug command is explicitly host-owned, which keeps core command modules focused on reusable domains.
Validation
yarn test:unit src/__tests__/unit/core/slash-command-modules.test.tsyarn test:unit src/__tests__/unit/tui/local-commands.test.tsyarn test:unit src/__tests__/unit/tui/heartbeat-cli.test.tsyarn vitest run src/__tests__/integration/core/heartbeat-scheduler.test.tsyarn eslintyarn typecheckyarn testoutside the sandbox, because the full integration suite needs localhost binding and normal git identity for temp repositories