feat: keep dead agents in the agent picker#12570
Conversation
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Lines 996 to 1002 in 3c942c3
select_agent_thread treats activate_thread_for_replay(..) returning None as “already active”. For closed threads this happens after one replay: drain_active_thread_events consumes a disconnected receiver and clears it, so subsequent selections of the same dead agent always fail with an incorrect error. This breaks the new picker behavior because dead agents remain listed but cannot be reopened.
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
Security review completed. No security issues were found in this pull request. ℹ️ About Codex security reviews in GitHubThis is an experimental Codex feature. Security reviews are triggered when:
Once complete, Codex will leave suggestions, or a comment if no findings are found. |
No description provided.