Skip to content

refactor: replace polling with direct inbox reads and teammate checks - #16

Merged
cs50victor merged 5 commits into
mainfrom
refactor/remove_polling
Feb 12, 2026
Merged

refactor: replace polling with direct inbox reads and teammate checks#16
cs50victor merged 5 commits into
mainfrom
refactor/remove_polling

Conversation

@cs50victor

Copy link
Copy Markdown
Owner

No description provided.

…sion

Behind CLAUDE_TEAMS_EXPERIMENTAL_LEAD_NOTIFY env var, discover the lead
agent's OpenCode session by matching cwd against active sessions at
initialization. When enabled, push messages addressed to team-lead
directly into their session and skip long-poll blocking in poll_inbox
(which stalls the single-threaded OpenCode agent).
Evolve peek_teammate into check_teammate with richer semantics:
- Read and mark-as-read unread messages FROM the checked teammate
  (via new read_inbox_filtered helper with sender-scoped marking)
- Report their_unread_count (messages they haven't consumed)
- Output is opt-in (include_output flag, off by default)
- Dynamic tool description based on push notification availability
- Optional deferred reminder via notify_after_minutes (OpenCode push)
- Remove CLAUDE_TEAMS_EXPERIMENTAL_LEAD_NOTIFY env gate; push
  activation is now automatic when OpenCode session is discovered
@cs50victor cs50victor changed the title feat(introspection): add peek_teammate tool for non-blocking tmux status checks refactor: replace polling with direct inbox reads and teammate checks Feb 12, 2026
@cs50victor
cs50victor merged commit 4392795 into main Feb 12, 2026
3 checks passed
@cs50victor
cs50victor deleted the refactor/remove_polling branch February 13, 2026 05:58
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