Skip to content

Drop local backend + Gemma 4; /model and /vision Enter opens picker#42

Merged
jonasneves merged 1 commit into
mainfrom
drop-local-gemma
May 24, 2026
Merged

Drop local backend + Gemma 4; /model and /vision Enter opens picker#42
jonasneves merged 1 commit into
mainfrom
drop-local-gemma

Conversation

@jonasneves
Copy link
Copy Markdown
Member

Summary

Two changes packaged because they touch the same slash surface:

1. Remove the local backend entirely

claude.js loses _localAsk, _localAskWithTools, loadLocalProvider, the LOCAL_PROVIDER_URL CDN import, and the local branches in ask() / askWithTools() / activeModelForBackend(). assistant-slash.js drops "local" from PIP_PROVIDERS and removes the WebGPU-gated /model local handler. assistant.js drops "local" from the onboarding picker labels + hasCredentialsForBackend. settings.js drops pipLocalModel / pipLocalDtype defaults. callToolWithHooks stays — still used by anthropic + openai tool loops.

Net: −226 lines.

2. /model + Enter → opens picker

/model and /vision with no args now return { openCompletions: true } instead of { reply: ... } help text. pip-core surfaces this as "re-open the arg-mode dropdown as a sub-menu" — so /model + Enter shows the provider picker right below the input instead of dumping help text into chat. Same shape for /vision (pip / detector picker). Removed the now-unused visionStatus() helper.

Test plan

  • make smoke (41/41)
  • node --check across touched files
  • /model + Enter → dropdown shows providers (github, bridge, anthropic, openai); selecting one switches backend
  • /vision + Enter → dropdown shows pip / detector; selecting one re-opens with second-level options
  • /model local → "Unknown provider local" (no longer valid)
  • First-message onboarding picker → 3 options (github/anthropic/openai), no "Local"
  • Existing backends still work end-to-end (github, anthropic, openai, bridge)

Two changes packaged because they touch the same slash surface:

1. Remove the `local` backend entirely. claude.js loses _localAsk,
   _localAskWithTools, loadLocalProvider, the LOCAL_PROVIDER_URL CDN
   import, and the `local` branches in ask() / askWithTools() /
   activeModelForBackend(). assistant-slash.js drops "local" from
   PIP_PROVIDERS and removes the WebGPU-gated `/model local` handler.
   assistant.js drops "local" from the onboarding picker labels +
   hasCredentialsForBackend. settings.js drops pipLocalModel /
   pipLocalDtype defaults. callToolWithHooks stays — still used by
   anthropic + openai tool loops.

2. `/model` and `/vision` with no args now return
   { openCompletions: true } instead of { reply: ... } help text.
   pip-core surfaces this as "re-open the arg-mode dropdown as a
   sub-menu" — so `/model` + Enter shows the provider picker right
   below the input instead of dumping help text into chat. Same shape
   for `/vision` (pip / detector picker). Removed the now-unused
   visionStatus() helper.
Copilot AI review requested due to automatic review settings May 24, 2026 23:05
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@jonasneves jonasneves merged commit 11b1494 into main May 24, 2026
1 check failed
@jonasneves jonasneves deleted the drop-local-gemma branch May 24, 2026 23:45
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.

2 participants