opencode-mission-control
opencode-mission-control copied to clipboard
feat: Expose session state detection (idle/streaming/unknown) to users
Source
Audit report — Appendix B: README vs. Implementation Discrepancies
Description
The monitor already detects session states (idle, streaming, unknown) by hashing terminal output and checking for the idle prompt pattern. However, this information is never surfaced to users — it is only used internally for idle-based completion detection.
Current State
monitor.tstracks session state per job- States:
idle(waiting for input),streaming(AI is working),unknown - Not exposed in
mc_status,mc_overview, ormc_jobsoutput
Proposed Solution
- Include session state in
mc_statusoutput (e.g., "Session: streaming (AI is actively working)") - Include in
mc_overviewjob list (e.g., "fix-auth: running [streaming]") - Optionally expose in
mc_jobsas a column
Impact
Users would get much better insight into whether a job is actively working vs. waiting for input vs. in an unknown state — reducing the need to mc_capture just to check if a job is still making progress.