Skip to content

chore: remove dead daemon auto-policy knobs (deleted in ao-cli v0.5.13)#1

Merged
Shooksie merged 1 commit into
mainfrom
chore/remove-dead-auto-policy-knobs
Jun 12, 2026
Merged

chore: remove dead daemon auto-policy knobs (deleted in ao-cli v0.5.13)#1
Shooksie merged 1 commit into
mainfrom
chore/remove-dead-auto-policy-knobs

Conversation

@Shooksie

Copy link
Copy Markdown
Contributor

Why

ao-cli v0.5.13 deleted the daemon auto_merge / auto_pr / auto_commit_before_merge / auto_prune_worktrees policy fields end-to-end. They were parsed and persisted but never executed; the daemon now silently drops these keys into an ignored extra map. Merge/PR policy lives in workflow YAML post_success.merge, executed by the workflow-runner plugin.

What changed

  • Removed the four read-only Automation toggles (auto_merge_enabled, auto_pr_enabled, auto_commit_before_merge, auto_prune_worktrees_after_merge) from DaemonConfigPage in src/app/settings-pages.tsx, along with the now-unused DAEMON_SETTINGS table, ToggleRow component, and Separator import.
  • Replaced the stale ao daemon config --auto-merge true/false footer note with an informational note pointing at workflow post_success.merge, matching the existing note style.
  • Kept the Auto Merge checkbox in the workflow builder (builder-pages.tsx) untouched — that is workflow-level post_success.auto_merge, which is still live.

GraphQL layer

No upstream schema cleanup needed: the daemon toggles had no GraphQL plumbing at all (they were hardcoded checked={false} with no query backing). animus-transport-graphql does not expose these daemon fields.

Checks

  • npm run test: 53/53 pass
  • npm run lint / npm run typecheck: no new issues introduced (pre-existing errors on main are unchanged — same counts before/after)
  • npx vite build succeeds; note npm run build's check:performance-budgets step resolves ../../embedded/index.html relative to the repo, which does not exist on a fresh clone — pre-existing, unrelated to this change.

🤖 Generated with Claude Code

ao-cli v0.5.13 deleted the daemon auto_merge / auto_pr /
auto_commit_before_merge / auto_prune_worktrees policy fields
end-to-end; they were parsed and persisted but never executed.
Drop the read-only toggles from the Daemon settings page and point
users at workflow post_success.merge, which is where merge/PR policy
actually lives (executed by the workflow-runner plugin).
@Shooksie
Shooksie merged commit 4042ebe into main Jun 12, 2026
1 check failed
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