Repository navigation
fix: programa race hands OpenCode its prompt with --prompt - #474
Merged
Merged
Conversation
--json prints refs by default, which drops workspace_id when workspace_ref is present.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this does
programa race --agent opencodenow actually gives OpenCode the prompt. OpenCode reads a bare argument as a project path, so until now it opened with an empty prompt (or failed to find a directory) and the race never started on the task.Summary
raceAgentLaunchCommandadds--promptbefore the quoted prompt foropencode. Claude Code and Codex still take it as a positional argument.programa worktree create --from-issue --agent ...had its own copy of the same rule; it now callsraceAgentLaunchCommand, so both paths start agents the same way.tests/test_cli_race_agent_launch.pychecks what gets typed into the pane for each agent, including a prompt with an apostrophe.The
--from-issuetest from feat: create a worktree workspace from a GitHub issue #472 checkedworkspace_idin--jsonoutput, but--jsonprints refs by default and drops that field, somainhas been red on it since feat: create a worktree workspace from a GitHub issue #472. It now checksworkspace_ref.Commits follow the regression-test policy: the first adds only the test and should fail CI, the second adds the fix.
Fixes INC-265
Test Plan
test_cli_race_agent_launch.pyon the opencode case.programa race --agent opencode "say hi"starts OpenCode with "say hi" already in its prompt.