Skip to content

Conversation

@jif-oai
Copy link
Collaborator

@jif-oai jif-oai commented Jan 12, 2026

This PR is in the scope of multi-agent work.

An agent (=thread) can now spawn other agents. Those other agents are not attached to any clients. We need a way to make sure that the clients are aware of the new threads to look at (for approval for example). This PR adds a channel to the ThreadManager that pushes the ID of those newly created agents such that the client (here the app-server) can also subscribe to those ones.

@jif-oai
Copy link
Collaborator Author

jif-oai commented Jan 14, 2026

@codex review

Copy link
Contributor

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 969e384b15

ℹ️ 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".

}

/// Ensure we have a listener for thread_id
pub(crate) async fn ensure_thread_listener(&mut self, thread_id: ThreadId) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a bit of a smell that this is called "ensure" if all it does is warn on error. Perhaps we could better comment under what circumstances attach_conversation_listener fails?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In theory in should never fail in this scenario but will do

@jif-oai jif-oai merged commit bcd7858 into main Jan 14, 2026
32 checks passed
@jif-oai jif-oai deleted the jif/auto-refresh-threads branch January 14, 2026 16:26
@github-actions github-actions bot locked and limited conversation to collaborators Jan 14, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants