Skip to content

feat(settings): consolidate AI Models picker into Agent Tools#17

Merged
mrdulasolutions merged 2 commits into
mainfrom
claude/move-ai-models-to-agents
May 13, 2026
Merged

feat(settings): consolidate AI Models picker into Agent Tools#17
mrdulasolutions merged 2 commits into
mainfrom
claude/move-ai-models-to-agents

Conversation

@mrdulasolutions
Copy link
Copy Markdown
Owner

Summary

User request: move the AI Models picker from the General tab to the Agent Tools tab, directly below the Anthropic authentication section.

What was wrong before

Two separate AI Models pickers, both writing to the same `modelConfig` prefs:

Tab Features
General → AI Models analysis, drafts, refinement, calendaring, archiveReady, senderLookup, agentDrafter, agentChat (8)
Agent Tools → AI Models analysis, drafts, refinement, summary, archiveReady, senderLookup (6)

Overlap on analysis/drafts/refinement/archiveReady/senderLookup meant whichever tab the user saved last won. Confusing UX, and `calendaring`/`agentDrafter`/`agentChat` could only be configured from one place while `summary` could only be configured from the other.

What this PR does

  • Deletes the General-tab AI Models card entirely (a small placeholder comment is left so a future reader doesn't add it back).
  • Adds the three missing features (`calendaring`, `agentDrafter`, `agentChat`) to the Agent Tools picker, so it now covers all 9 features in one place.
  • The General tab now flows: Notifications → Updates, with no gap.

Single source of truth, lives directly under the Anthropic auth card (Authentication → AI Models). The OpenRouter key input, Free Model loader, and per-feature picker were already grouped together in the Agent Tools AI Models card — this PR just consolidates into that existing structure rather than reorganising it.

Test plan

  • General tab no longer shows AI Models — flows from Notifications to Updates
  • Agent Tools → AI Models lists all 9 features
  • Changing any feature there auto-saves and persists across reloads
  • `modelConfig.calendaring`, `agentDrafter`, `agentChat` round-trip correctly through the sidecar's `resolveModelFor()`

🤖 Generated with Claude Code

mrdulasolutions and others added 2 commits May 13, 2026 17:19
`npm run tauri:dev` was unusable on macOS 14.4+ (and stricter on 15+):
the bundled aos-mail-node binary spawned and was immediately SIGKILL'd
by `amfid` (Apple Mobile File Integrity), so the sidecar died on launch
with `WARN sidecar terminated: signal: Some(9)`. Tauri's shell plugin
then logged `sidecar stdin write failed: Broken pipe` and the app sat
broken at the splash.

Root cause: prepare-node-binary.mjs explicitly strips the Node
Foundation signature (`codesign --remove-signature`) with a comment
that "Tauri will re-sign with our Developer ID at bundle time." That's
true for `tauri build` (via tauri-action's keychain dance), but in
`tauri dev` nothing re-signs — the binary stays unsigned, and modern
macOS refuses to execute unsigned arm64 Mach-O binaries.

Fix: after the strip, add a `codesign --sign - --force` ad-hoc signing
step. Ad-hoc signatures satisfy `amfid` for local execution and don't
interfere with tauri-action's later `codesign --force` with the real
Developer ID cert in production builds — `--force` replaces whatever
signature is there.

Verified locally: `aos-mail-node --version` now returns v24.14.0
(exit 0) instead of dying with exit 137. The running `tauri dev`
session picked up the new binary on its next file-change rebuild and
the sidecar booted cleanly: `sidecar: ready, listening on stdin`.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
User asked to move the AI Models section from General to "under the
authentication for anthropic in agent tools." Doing so deduplicates a
problem that had been growing: General had its own 8-feature model
picker, Agent Tools had a 6-feature one (analysis/drafts/refinement/
summary/archiveReady/senderLookup), and changing the same feature in
both wrote the same modelConfig key with whichever value got saved
last — confusing.

Single picker now lives in Agent Tools → AI Models card, directly
below the Authentication card that holds the Anthropic API key.
Covers all 9 features:

  analysis, drafts, refinement, calendaring (new in this card),
  summary, archiveReady, senderLookup, agentDrafter (new),
  agentChat (new).

The General tab's AI Models section is removed. A placeholder
comment is left so a future reader doesn't reintroduce it. The
Updates card immediately follows, so the General tab now flows
straight from Notifications → Updates.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@mrdulasolutions mrdulasolutions merged commit b79feba into main May 13, 2026
2 of 3 checks passed
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