File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed
content/manuals/ai/sandboxes Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -93,6 +93,28 @@ $ git worktree remove .sbx/<sandbox-name>-worktrees/<branch-name>
9393$ git branch -D < branch-name>
9494```
9595
96+ ## Signed Git commits
97+
98+ Agents inside a sandbox can't sign commits because signing keys (GPG, SSH)
99+ aren't available in the sandbox environment. Commits created by an agent are
100+ unsigned.
101+
102+ If your repository or organization requires signed commits, use one of these
103+ workarounds:
104+
105+ - ** Commit outside the sandbox.** Let the agent make changes without
106+ committing, then commit and sign from your host terminal.
107+
108+ - ** Sign after the fact.** Let the agent commit inside the sandbox, then
109+ re-sign the commits on your host:
110+
111+ ``` console
112+ $ git rebase --exec 'git commit --amend --no-edit -S' origin/main
113+ ```
114+
115+ This replays each commit on the branch and re-signs it with your local
116+ signing key.
117+
96118## Clock drift after sleep/wake
97119
98120If your laptop sleeps and wakes while a sandbox is running, the VM clock can
You can’t perform that action at this time.
0 commit comments