Repository navigation
feat(cli): say where commands run and ship a container for unattended runs - #490
Conversation
Codex Review SummaryThis 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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: fa55d0e740
ℹ️ 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".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: bdb2014da0
ℹ️ 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".
… runs Commands run as the user with the user's network and credentials, and nothing told them so. qq doctor gains environment and snapshots checks, the TUI's first screen states both, and a host qq run --goal prints one note linking the new running-unattended guide. A Dockerfile and .devcontainer/ run qq with only the project mounted, and CI smokes qq inside the devcontainer against the loopback fake provider.
Detect the container off Tokio workers, create the image's data directory as agent-owned 0700 so a fresh named volume works for the daemon, and make the guide's examples run as written: pick a model with QQ_MODEL and show a complete managed.ron.
bdb2014 to
4a21297
Compare
Change
Plan section G. Commands QQ runs use the user's account, network and
credentials, and until now nothing said so. This PR says it, and makes it
easy to run QQ in a container instead.
qq doctorhas two new checks:environment(on the host or in acontainer, and what commands can reach) and
snapshots(whetherqq undoworks here; a warning outside Git).qq run --goalon the host prints onenote:line on stderr that linksthe new guide. It reads no input and changes no exit code. Inside a
container there is no note.
Dockerfile: a small runtime image (git,tini, a non-rootagentuser) that runs
qqorqq daemon runwith only/workspacemounted.Its
devstage backs.devcontainer/, which uses the repository'stoolchain, puts
qqonPATH, and clearsSSH_AUTH_SOCK.docs/guide/running-unattended.md: mount only theproject, use a fine-grained token per repository, give the agent its own
Git identity, block commands with managed
deny_shell_prefixes, and whya machine with production credentials is the wrong host.
devcontainer smokejob builds the devcontainer and runsthree smoke scenarios inside it against the loopback fake provider.
Verification
cargo xtask check: passed (409.6 s) on the tree before a one-lineDockerfile change (
USER=agent); fmt and lint rerun clean after it.cargo xtask smoke --only run-tool-call --only run-goal-budget --only doctor-and-configpasses on the host (one leading host note; doctor says "on the host")
and inside the devcontainer (no note; doctor says "in a container").
doctor checks (outside Git, then after
git init), and the TUI renderat two widths.
qq doctorinside it reportedin a container (/.dockerenv): commands run as agent, …with snapshotson, and
qq daemon runserved at127.0.0.1:37441inside thecontainer.
Known impact
cargo build.tests cover the first screen.
qq doctorcheck list grows from 9 to 11;--jsonconsumers seetwo more entries.