You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat/batch-changes: address sourcegraph#12503 review for v1 codingAgent port
Apply review feedback from sourcegraph/sourcegraph#12503 (where the
upstream codingAgent step lives) to the src-cli v1 port. The same
lib/batches/codingagent surface is shared, so the same review
applies here.
Changes:
- lib/batches/codex: switch to upstream-recommended curl-based
install (codex/claude code both recommend it), pin codex CLI
version, drop dependency on the agent CLI being pre-baked in
the run image. ImageRequirements is now [curl, tar] so misconfigured
images fail fast at step start.
- lib/batches/codingagent/types: add Agent.InstallScript and
InstallDir so each agent owns its own pinned install at a
Sourcegraph-controlled path, ignoring whatever the user image ships.
- lib/batches: add Step.MarshalJSON to canonicalize v3 image: into
container: on the wire. Without this the prep-side cache key (which
marshals Step to JSON) includes image while src-cli's executor side
does not, producing silent cache misses on every v3 spec.
- lib/batches: reject codingAgent + run in the same step at parse
time instead of silently picking one.
- internal/batches/executor: extract forwardCodingAgentEnv with a
docstring spelling out what's forwarded and why.
- Tests for forwardCodingAgentEnv and the v3 image/codingAgent
parse paths.
Test Plan:
- go test ./internal/batches/executor/ (root module)
- cd lib && go test ./batches/...
0 commit comments