Skip to content

Add agent monitoring and fix activity after CLI exit - #1

Merged
SculptTechProject merged 1 commit into
mainfrom
feat/agent-monitor
Sep 12, 2026
Merged

SculptTechProject merged 1 commit into
mainfrom
feat/agent-monitor

Conversation

@SculptTechProject

Copy link
Copy Markdown
Owner

Broschy now monitors local Codex CLI, Claude Code, and OpenCode sessions from an Agents tab and the compact notch. The Needs you queue collects questions, permission requests, errors, and responses ready for review; session actions copy a resume command, open the project folder, and mark a response reviewed.

The monitor also handles a missing exit event: Codex CLI 0.144.5 does not dispatch SessionEnd or Interrupt hooks, so closing its terminal could previously leave Working visible for 30 minutes. Hooks now capture the specific provider process ID and start time. When that process exits, active sessions disappear even without an exit hook. PID reuse or another open Codex session cannot keep the old session active. Unverified activity expires after 75 seconds, verified working activity after 120 seconds, and waiting requests after 30 minutes. Metadata updates do not refresh activity.

Includes reversible integration setup with configuration backups, metadata-only snapshots, English documentation and sample screenshots, and version 0.7.1. Codex desktop conversation monitoring remains unverified; this version does not send prompts, approve tools, or stop agents.

Validation:

  • All Swift core, CLI, storage, mocked Spotify, and AgentBridge checks passed, including real child-process exit, PID/start mismatch, concurrent requests, privacy redaction, stale review acknowledgments, and old-snapshot compatibility.
  • All 26 Python/Node installer and adapter tests passed.
  • Release app built and passed property-list and signature verification.
  • Native UI checked in Light/Dark appearance, Reduce Motion/Transparency, and compact/expanded layouts. A controlled process sent UserPromptSubmit through the bundled CLI, then exited without SessionEnd; the running app removed its Working state. Synthetic data was removed afterward.

@SculptTechProject
SculptTechProject merged commit 53ed211 into main Sep 12, 2026
1 check passed
@SculptTechProject
SculptTechProject deleted the feat/agent-monitor branch September 12, 2026 21:59
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