Skip to content

Turn AI-download chrome://flags into per-item options with select-all and revert - #24

Merged
itamaker merged 1 commit into
mainfrom
feat/ai-download-options-and-revert
Aug 12, 2026
Merged

Turn AI-download chrome://flags into per-item options with select-all and revert#24
itamaker merged 1 commit into
mainfrom
feat/ai-download-options-and-revert

Conversation

@itamaker

Copy link
Copy Markdown
Owner

Summary

  • CLI/GUI: each chrome://flags entry and the GenAILocalFoundationalModelSettings Enterprise policy are now independently selectable (-disable-flag, -disable-ai-policy, per-item checkboxes), with a "select all" master switch (-disable-ai-download, GUI "Select all") that locks everything when on.
  • Every run now fully syncs Chrome to the current selection instead of only ever adding changes: deselecting a flag removes its override (reset to Chrome default) and deselecting the policy removes it from the OS managed-policy store (macOS defaults delete, Linux file removal, Windows reg delete), if either was previously set.
  • Fixed the policy preview detail line to show the actual command for the direction being previewed (was always showing the write command, even when reverting).

Test plan

  • go build ./..., go vet ./..., go test ./... on darwin
  • Cross-compiled internal/chrome + cmd/cli for linux/amd64 and windows/amd64 (go build/go vet)
  • go run ./cmd/go-chrome-ai -dry-run covering select-all, single-flag, no-flags/no-policy, and revert scenarios; verified preview output and log lines
  • Launched the GUI (go run ./cmd/go-chrome-ai gui) and confirmed it runs without errors after each round of changes

🤖 Generated with Claude Code

…ct-all and revert

Replaces the single disable-ai-download on/off toggle with individually
selectable chrome://flags entries and a decoupled Enterprise-policy option,
each with its own "select all" master switch, in both CLI and GUI.

Every run now fully syncs Chrome to the current selection: deselecting a
flag or the policy actively reverts it (flag override removed, policy
entry deleted) instead of just being skipped on future runs.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@itamaker
itamaker merged commit f8af484 into main Aug 12, 2026
1 check passed
@itamaker
itamaker deleted the feat/ai-download-options-and-revert branch August 12, 2026 08:06
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