Skip to content

feat(dashboard): the dashboard writes no file of a repository; prompts instead (ADR-0071) - #327

Merged
7schmiede merged 1 commit into
mainfrom
feat/dashboard-writes-no-repo-files
Oct 27, 2026
Merged

7schmiede merged 1 commit into
mainfrom
feat/dashboard-writes-no-repo-files

Conversation

@7schmiede

Copy link
Copy Markdown
Member

Why

Three buttons wrote files into the user's repository through the hub, files nobody had read and someone else would commit: "Refresh skills" (also in the "stack file behind" banner, where it left [stack] reviewed behind and skipped the check of the project's own skills), "Create draft" in "Add a stack", and "Copy the main tree's" for a worktree without a stack file. Each had a prompt beside it doing the same and more.

Also a bug from #320: hiding the "stack file behind" banner brought the skills banner up in its place with the same news.

What (ADR-0071, accepted by the owner)

  • Hub: POST /hub/stacks/init, POST /hub/stacks/{id}/skills, POST /hub/stacks/{id}/worktrees/stack-file removed (and branches::give_stack_file). GET .../skills stays. New prompt kind skills (prompts.rs): devstack --version, devstack skills install, read the diff, check the project's own skills, CLAUDE.md, AGENTS.md.
  • Dashboard:
    • Upgrade banner: no "Refresh skills only"; its prompt refreshes the skills too.
    • Skills banner: the skills prompt (compact: start in the agent, or copy/show) instead of the button; while the stack file is behind it stays away for "older" skills, so hiding the upgrade banner hides both until the next minor.
    • "Add a stack" without a stack file: only the setup prompt (it runs devstack init), and the hint to copy it or run devstack init by hand.
    • Worktree without a stack file: the lane-file prompt is the banner's action.
  • Unchanged: worktree add/remove/fetch (git operations, ADR-0047), the CLI (devstack init, devstack skills install).
  • Docs: ADR-0071, ADR-0055 point 4 replaced, ADR-0046's prompt table, dashboard-api.md, plan.md, CHANGELOG.

Tests

  • tests/hub.rs: the three routes answer 405/404 and write nothing; the setup and skills prompts name their commands.
  • prompts.rs: the new prompt fits a link, asks before committing.
  • Dashboard: typecheck, vitest (75), build:mock. The banners were not clicked through in a browser.

🤖 Generated with Claude Code

…s instead (ADR-0071)

"Refresh skills", "Create draft" and "Copy the main tree's" wrote files
into the repository that nobody had read. Each is a prompt for a coding
agent now: the new `skills` prompt, `setup` (which runs `devstack init`),
`lane-file`. The hub's routes that wrote (`POST /hub/stacks/init`,
`POST /hub/stacks/{id}/skills`, `POST /hub/stacks/{id}/worktrees/stack-file`)
are gone.

While the stack file is behind, the upgrade banner speaks for the agent
skills too; hiding it hides both until the next minor (before, the
skills banner came up in its place).

ADR-0071 accepted; ADR-0055 point 4 replaced, ADR-0046 gains `skills`.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@7schmiede
7schmiede merged commit 1cdbaec into main Oct 27, 2026
13 checks passed
@7schmiede
7schmiede deleted the feat/dashboard-writes-no-repo-files branch October 27, 2026 18:33
@7schmiede 7schmiede mentioned this pull request Oct 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant