Skip to content

Add StatusFinishing sidebar state for sentinel file detection#694

Merged
Iron-Ham merged 1 commit into
mainfrom
Iron-Ham/5ee736f8-we-should-have-a-state-in-the
Mar 20, 2026
Merged

Add StatusFinishing sidebar state for sentinel file detection#694
Iron-Ham merged 1 commit into
mainfrom
Iron-Ham/5ee736f8-we-should-have-a-state-in-the

Conversation

@Iron-Ham
Copy link
Copy Markdown
Owner

Summary

  • Adds a dedicated finishing instance status that activates between sentinel file detection and verification completion, replacing the misleading "working" state during the VerifyWork phase
  • Extends the SessionRecorder interface with RecordSentinelDetected, called by the bridge monitor before verification runs
  • Adds teal color, bullseye icon (), and FIN. abbreviation across all 14 theme palettes
  • Routes the status transition through Orchestrator.SetInstanceStatus() (lock-safe) to prevent data races
  • Includes StatusFinishing in all session recovery methods (NeedsRecovery, GetInterruptedInstances, MarkInstancesInterrupted, GetResumableInstances)

Test plan

  • go build ./... passes
  • go vet ./... passes
  • go test -race ./internal/bridge/... — includes TestBridge_SentinelDetectedBeforeCompletion verifying ordering
  • go test -race ./internal/orchestrator/... — all orchestrator packages pass
  • go test -race ./internal/tui/... — styles, view, and TUI tests pass
  • go test -race ./internal/cmd/session/... passes
  • gofmt -d . shows no formatting issues

Add a dedicated "finishing" status that activates between sentinel file
detection and verification completion. This replaces the misleading
"working" state during the VerifyWork phase.

- Add StatusFinishing constant to InstanceStatus
- Extend SessionRecorder interface with RecordSentinelDetected
- Wire bridge to call RecordSentinelDetected before VerifyWork
- Add teal color, bullseye icon, and FIN. abbreviation across all themes
- Wire pipeline_wire callbacks via lock-safe SetInstanceStatus method
- Include StatusFinishing in all session recovery methods
@Iron-Ham Iron-Ham force-pushed the Iron-Ham/5ee736f8-we-should-have-a-state-in-the branch from 5cb2d79 to 2d96cad Compare March 20, 2026 22:59
@Iron-Ham Iron-Ham marked this pull request as ready for review March 20, 2026 23:06
@Iron-Ham Iron-Ham merged commit 84fbb8e into main Mar 20, 2026
11 of 12 checks passed
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