Skip to content

fix(sidebar): preserve Needs attention on window focus and isolate agent activity (#6) - #19

Open
facyndev wants to merge 1 commit into
developfrom
fix/sidebar-agent-attention
Open

facyndev wants to merge 1 commit into
developfrom
fix/sidebar-agent-attention

Conversation

@facyndev

Copy link
Copy Markdown
Owner

Summary

  • Add isPaneActive and shouldClearAttentionOnWatchChange in @opencollab/ui so Needs attention is not cleared merely when the application window regains focus (windowFocused: false -> true) on an already-selected pane.
  • Clear Needs attention only when the user switches to the pane, un-minimizes/un-hides it, clicks inside the pane (pointerdown), types in the terminal (keydown), or clicks the terminal item in the sidebar ( ocusAckSeq).
  • Isolate generic PTY activity tracking in �gent_watcher.rs and TerminalPane.tsx so raw shell output before an agent starts or after an agent exits does not emit false Working / Idle / Needs attention states.

Closes #6

Verification

  • pnpm --filter @opencollab/ui test (15 passed in �ctivity.test.ts)
  • pnpm --filter @opencollab/desktop test (26 passed)
  • cargo test -p desktop (42 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