docs: split git workflow by execution context#49
Merged
jonnyparris merged 2 commits intomainfrom Apr 25, 2026
Merged
Conversation
Dodo sessions run in sandboxed Durable Object clones — there is no parent checkout to share with and no concurrent local agent to collide with, so 'git worktree add' is meaningless and unavailable as a tool. Following the existing 'Worktrees Required' guidance caused session da9f961f to improvise a branch in-place and forget to push/open the PR until asked twice. AGENTS.md now splits the guidance: - Dodo session runtime: branch via git_checkout, push with git_push_checked, open the PR before replying. - Local opencode CLI in ~/dev/dodo: keep the worktree workflow. Also adds two short rules to SYSTEM_PROMPT under Git safety: - Never use git worktree (you are the sandboxed clone). - Open the PR before replying — construct the compare URL if no dispatch tool opens it for you.
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ❌ Deployment failed View logs |
dodo | 3342d97 | Apr 25 2026, 03:06 PM |
…n tests The generics are <O extends DurableObject, R> — DurableObject type first, return type second. The tests had them swapped, which made TypeScript infer the return type as a DurableObject and fail. Tests pass (4/4) and typecheck is clean.
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.
Summary
~/dev/dodoon a laptop). Worktree workflow stays for the local case; sessions branch directly viagit_checkout+git_push_checked.SYSTEM_PROMPTunder Git safety: never usegit worktreefrom inside a session, and open the PR before replying (construct the compare URL if needed).Why
Session da9f961f read AGENTS.md, hit the "Worktrees Required" section, found
git worktree addwas not available as a tool, improvised a feature branch in-place, then forgot to push and open the PR until asked twice. That's a documentation problem, not a model problem — the guidance was written for opencode-CLI use on a laptop and leaked into the Dodo runtime.Validation
test/idle-session-cleanup.test.ts(present on main, unchanged by this PR). No new errors introduced.beep-boop-🤖