Skip to content

Conversation

@jif-oai
Copy link
Collaborator

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

No description provided.

@jif-oai
Copy link
Collaborator Author

jif-oai commented Jan 9, 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: bcc89596eb

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

}
let _timeout_ms = timeout_ms.min(MAX_WAIT_TIMEOUT_MS);
// TODO(jif): implement agent wait once lifecycle tracking is wired up.
Err(FunctionCallError::Fatal("wait not implemented".to_string()))
Copy link
Contributor

Choose a reason for hiding this comment

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

P2 Badge Avoid fatal errors for wait tool

With Feature::Collab enabled, build_specs registers the wait tool, so the model is allowed to call it; this handler always returns FunctionCallError::Fatal, which ToolRouter::dispatch_tool_call treats as a hard failure rather than a tool output. That means any wait call will abort the entire turn instead of returning a normal tool failure, making the collab flow unusable whenever the model tries to wait. Consider hiding the tool until implemented or returning a non-fatal failure response.

Useful? React with 👍 / 👎.

Comment on lines +157 to +158
Err(FunctionCallError::Fatal(
"close_agent not implemented".to_string(),
Copy link
Contributor

Choose a reason for hiding this comment

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

P2 Badge Avoid fatal errors for close_agent tool

The close_agent tool is also registered when collab is enabled, but its handler always returns FunctionCallError::Fatal. Since fatal tool errors short-circuit dispatch instead of producing a tool failure output, any close_agent call will fail the entire turn. If this tool is exposed to the model before being implemented, it will cause abrupt failures rather than a recoverable tool error.

Useful? React with 👍 / 👎.

@jif-oai jif-oai merged commit 568b938 into main Jan 9, 2026
26 checks passed
@jif-oai jif-oai deleted the jif/collab-tools branch January 9, 2026 11:54
@github-actions github-actions bot locked and limited conversation to collaborators Jan 9, 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.

3 participants