From 96e480a7fa5fc9b3e4d6e3ca130b294142a40857 Mon Sep 17 00:00:00 2001 From: 7schmiede Date: Fri, 23 Oct 2026 22:01:58 +0200 Subject: [PATCH] fix(hub): the dashboard's prompts ask which branch a commit goes on They said to ask before committing, not where: a coding agent took the branch checked out, which may be another piece of work's. Co-Authored-By: Claude Opus 5.5 --- CHANGELOG.md | 7 +++++++ crates/devstack-hub/src/prompts.rs | 7 ++++++- ui/src/api/mock/index.ts | 2 +- 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4d786cc9..b88f5b72 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -42,6 +42,13 @@ and listed with their assets on the service (`--init`, `--rm`, a name per instance). A file with `stop` says `requires = "0.21.0"`. +### Fixed + +- **The dashboard's prompts ask which branch a commit goes on.** They said + to ask before committing, not where: a coding agent took the branch + checked out, which may be another piece of work's. Each prompt now has + the agent name the branch when it asks. + ## [0.20.0] - 2026-10-23 macOS as a developer platform in preview, installed with Homebrew on macOS diff --git a/crates/devstack-hub/src/prompts.rs b/crates/devstack-hub/src/prompts.rs index 8c5d2987..1e22e1ff 100644 --- a/crates/devstack-hub/src/prompts.rs +++ b/crates/devstack-hub/src/prompts.rs @@ -52,7 +52,7 @@ pub fn text(p: &Prompt) -> String { let v = devstack_config::VERSION; let at = format!("{REPO_URL}/blob/v{v}"); let about = "devstack (https://github.com/nuetzliches/devstack) runs a local development stack from a devstack.toml in the repository root: containers from the Compose files, native services built in the background, a change goes live once it is healthy."; - let careful = "Ask me before running anything that deletes data, and before committing."; + let careful = "Ask me before running anything that deletes data, and before committing, naming the branch: the branch checked out may hold other work."; match *p { Prompt::Setup { repo, drafted } => format!( "Set up devstack for the repository at {repo}. @@ -287,6 +287,11 @@ mod tests { fn the_prompts_name_their_versions_and_references() { let p = all("boom"); assert!(p[0].contains("Run `devstack init`")); + assert!( + p.iter() + .all(|q| q.contains("before committing, naming the branch")), + "every prompt asks before a commit, and on which branch" + ); assert!(p[1].contains("A draft devstack.toml exists")); assert!(p[2].contains("```\nboom\n```")); assert!(p[3].contains("last brought up to date with devstack 0.1.0")); diff --git a/ui/src/api/mock/index.ts b/ui/src/api/mock/index.ts index 8bc43a91..d1c6365b 100644 --- a/ui/src/api/mock/index.ts +++ b/ui/src/api/mock/index.ts @@ -533,7 +533,7 @@ export class MockTransport implements Transport { 1. Read the stack file reference. 2. Run \`devstack check\` and \`devstack doctor\`. -3. Ask me before committing.`, path: target }); +3. Ask me before committing, naming the branch: the branch checked out may hold other work.`, path: target }); } if (p === '/hub/agent' && method === 'POST') { await sleep(400);