Repository navigation
docs(runner): ask sessions for push commands a user can approve - #269
Merged
Merged
Conversation
Keep identity checks and remote setup out of the push, push with one plain git push naming remote and branch, and describe it first. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UrTUMxgU4PhDDYKGGjpT5z
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UrTUMxgU4PhDDYKGGjpT5z
PreviewsThe start.coder.ddev.com landing-page preview has been removed. Read the Docs keeps or removes its own docs preview. |
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.
Short Summary (TL;DR)
The runner's
coder-shared-workspaceskill now asks sessions for one plaingit push <remote> <branch>per approval, with the identity check and remote setup kept out of it. Users can then approve a push by reading its command.The Issue
Sessions on the runner push to forks over SSH, and the skill asks them to compare
ssh -T git@github.comwithget_mefirst. Sessions often folded that check,git remote add, and a retry loop into the push command itself. The approval prompt then showed a script, which a user can't judge, especially from a phone.How This PR Solves The Issue
A new "Make each push easy to approve" section in
modules/claude-self-hosted-runner/files/SKILL.mdsays:&&, pipes, loops, variables orbash -c.AGENTS.mdwhere it is stricter. For example, ddev/ddev'saskrule doesn't seegit -C.make sync-sharedcopied the change intofreeform/modules/claude-self-hosted-runner/.ddev/ddev gets the same rule in its own
AGENTS.mdin a separate PR.Manual Testing Instructions
git remote addas separate prompts.git push -u <remote> <branch>.Automated Testing Overview
Documentation only. Claude Code ran
make sync-shared, and only the vendoredSKILL.mdchanged. Nobody ranmake validateormake test-templatesfor this change.Generated by Claude Code