feat(orchestration): add compacting status indicator#46
Merged
Conversation
- Add `compacting: boolean` field to OrchestrationSession to track provider context compaction operations - Derive compacting state from provider events: Claude session.state.changed with CLAUDE_COMPACTING_REASON, Codex context_compaction item lifecycle, and thread.state.changed=compacted - Clear compacting flag on safety events (turn.started/completed, session.exited) to prevent stale state - Display "Compacting..." in MessagesTimeline UI during active compaction - Add comprehensive test coverage for all state transitions
- Auto-extract plan steps from TodoWrite tool invocations
- Auto-open plan sidebar when new steps arrive for the current turn
- Replace todo checklist UI with unified plan/task sidebar display
- Remove showTodosInComposer setting and ComposerActiveTasksPanel
- Dynamic sidebar label ("Plan" vs "Tasks") based on interaction mode
- Fall back to "Task" label for blank todo content
- Improve exploration card search term detection and formatting
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
compactingboolean field toOrchestrationSessionto track when Claude or Codex is performing context compactionderiveNextCompacting()state machine to toggle compacting flag based on provider events:session.state.changedwithCLAUDE_COMPACTING_REASONor Codexitem.startedwithcontext_compactionthread.state.changed=compacted, or safety events (turn start/complete, session exit)CLAUDE_COMPACTING_REASONwhen provider reportsstatus:compactingisCompactingprop to MessagesTimeline to display "Compacting…" status message during context compressioncompacting: falsedefaultCLAUDE_COMPACTING_REASONconstant for provider integrationTesting
session.compacting === true✓