Repository navigation
feat(coderd/x/chatd): accept model_config_id and reasoning_effort for computer_use spawns - #95
Conversation
|
@codex review
|
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
UAT at 9d1a59d: PASS (Colima, real
Tool text sent to the model: with the experiment on, |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 9d1a59df43
ℹ️ 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".
|
@codex review
|
|
Codex Review: Didn't find any major issues. Delightful! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
|
@codex review
|
|
Codex Review: Didn't find any major issues. Bravo. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
…es-r12-1-computer-use
|
@codex review
|
|
Codex Review: Didn't find any major issues. What shall we delve into next? Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
…es-r12-1-computer-use # Conflicts: # coderd/x/chatd/fork_tools.go # docs/fork/pstack-adapter.md
Merged
Validation on @codex review |
|
Codex Review: Didn't find any major issues. Can't wait for the next one! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
Closing and reopening only to make GitHub recompute the merge ref against current main ( |
The merge ref now points at current main ( |
Merge evidence for head
|
Part of #7
With
fork-agent-definitionson,spawn_agentnow acceptsmodel_config_idandreasoning_effortfortype: "computer_use"(brief item R12.1). Before this change, the spawn rejected both, and a computer use child always ran on the organization's computer use model.Change
spawnAgentrejects the two arguments forcomputer_useonly when the experiment is off (subagent.go, one condition).forkLookupSubagentDefinitionwraps the built-incomputer_usetype when the experiment is on. An explicitmodel_config_idmust support computer use (chatprovider.ComputerUseProvider), or the spawn fails with the provider and the requirement. An OpenAI model must also not setuse_responses_api: false, since computer use needs the Responses API. The child then runs on that config and drops the organization override's reasoning effort, which belongs to the override's model. An explicitreasoning_effortstill applies last, as for the other types. Without the arguments nothing changes.appendForkToolswrapsspawn_agentwith the experiment on, so its description and parameter descriptions no longer say the arguments are unsupported forcomputer_use.docs/fork/pstack-adapter.mddescribes the behavior and updates the line citations that moved.Upstream behavior with the experiment off is unchanged, and
TestSpawnAgent_ComputerUseRejectsModelArgsstill covers it.Tests
TestForkComputerUseSpawnOverrides: an explicit model and effort, an explicit model alone (the override'shigheffort is dropped), an explicit effort alone (stays on the override model), a Google model that is rejected with no child created, and an OpenAI model with the Responses API disabled that is rejected the same way.TestForkComputerUseSpawnOverridesToolText: the rewritten text with the experiment on, and the upstream text with it off.go test ./coderd/x/chatd/ok. golangci-lint reports nothing in the touched files.Size
About 290 changed lines: about 135 implementation, about 145 tests, and 13 doc lines.