Skip to content

Default Claude to Opus 4.7 + ListenerRegistry refactor#127

Merged
luokerenx4 merged 2 commits intomasterfrom
dev
Apr 17, 2026
Merged

Default Claude to Opus 4.7 + ListenerRegistry refactor#127
luokerenx4 merged 2 commits intomasterfrom
dev

Conversation

@luokerenx4
Copy link
Copy Markdown
Contributor

Two commits ahead of master, pushed together.

Claude default → Opus 4.7 + inline model switcher (f64ca4e)

  • Default model across presets, profile schemas (agent-sdk, vercel-ai-sdk), legacy migration fallbacks, and the agent-sdk query fallback all move to claude-opus-4-7
  • Added Opus 4.7 to Claude OAuth / Claude API model option lists (placed first)
  • Expanded claude-oauth hint and added claude-api hint — both surface that the model is switchable in-UI and note the cost/quota trade-off, so users aren't surprised by Opus being the default
  • Profile list card: replaced the static model text with a clickable <select> chip (chevron affordance) so users can switch models inline without entering the Edit modal. Display also now uses labels (Claude Opus 4.7) instead of raw ids (claude-opus-4-7)

ListenerRegistry refactor (65b9349)

  • New Listener<K> interface + ListenerRegistry centralizing subscription lifecycle
  • Migrated CronListener, Heartbeat, SnapshotScheduler, and ConnectorCenter to the new pattern
  • main.ts no longer calls subscribeType directly — each module registers its own listener via the registry

Test plan

  • `npx tsc --noEmit` passes
  • `pnpm test` — 1024 tests pass
  • Manual: AI Provider page — model chip dropdown switches models on Claude Subscription without opening Edit modal
  • Manual: creating a new Claude Subscription profile shows the updated hint with model-switching guidance
  • Manual: heartbeat / cron / snapshot listeners still fire after ListenerRegistry migration

🤖 Generated with Claude Code

Ame and others added 2 commits April 17, 2026 12:20
…profile list

- Bump default Claude model to claude-opus-4-7 across preset catalog,
  profile schemas (agent-sdk, vercel), and agent-sdk query fallback
- Add Opus 4.7 to Claude OAuth/API model lists (placed first)
- Expand preset hints to mention in-UI model switching and cost
  trade-off so users know they are not locked into Opus
- Replace profile-list model text with a clickable <select> chip
  (chevron affordance) so users can switch models without entering
  the Edit modal; show labels instead of raw ids

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
…ycle

Add a minimal standard Listener<K> interface and a ListenerRegistry that
centralizes subscription management. Each module that needs to listen
takes the registry as a dep and registers its own listener internally —
谁用谁负责. Registry only handles lifecycle and error isolation; filtering,
serial locks, and state remain the listener's responsibility.

Migrated CronListener, Heartbeat, SnapshotScheduler, and ConnectorCenter
to the new pattern. Main.ts no longer directly calls subscribeType.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@luokerenx4 luokerenx4 merged commit 440b6fe into master Apr 17, 2026
2 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