Commit Graph

28549 Commits (4329d94de3a71803db177ee50af68eb75d7ea06b)
 

Author SHA1 Message Date
Peter Steinberger c524d6c76c
docs: refresh shared minimax web search refs 8 months ago
Peter Steinberger bec891b2e2 test: cover attach-only browser stop cleanup (#60097) (thanks @pedh) 8 months ago
pedh 2c9723afd5 fix(browser): disconnect Playwright CDP session on stop for attachOnly/remote profiles
When `browser stop` is called for an `attachOnly` or remote CDP
profile, `profileState.running` is null (no process was launched), so
`stopRunningBrowser()` returned early without closing the Playwright
CDP connection. This left emulation overrides (prefers-color-scheme,
viewport, etc.) permanently applied until a full gateway restart.

Now call `closePlaywrightBrowserConnectionForProfile()` before
returning for attachOnly and remote CDP profiles, matching the cleanup
behavior already present in `resetProfile()`. Regular profiles that
were never started still return `{ stopped: false }`.

Fixes #60095
8 months ago
Peter Steinberger 0bc9f0b5ba
docs: refresh browser screenshot route refs 8 months ago
Jithendra d204be80af feat(tools): add MiniMax as bundled web search provider
Add native MiniMax Search integration via their Coding Plan search API
(POST /v1/coding_plan/search). This brings MiniMax in line with Brave,
Kimi, Grok, Gemini, and other providers that already have bundled web
search support.

- Implement WebSearchProviderPlugin with caching, credential resolution,
  and trusted endpoint wrapping
- Support both global (api.minimax.io) and CN (api.minimaxi.com)
  endpoints, inferred from explicit region config, model provider base
  URL, or minimax-portal OAuth base URL
- Prefer MINIMAX_CODE_PLAN_KEY over MINIMAX_API_KEY in credential
  fallback, matching existing repo precedence
- Accept SecretRef objects for webSearch.apiKey (type: [string, object])
- Register in bundled registry, provider-id compat map, and fast-path
  plugin id list with full alignment test coverage
- Add unit tests for endpoint/region resolution and edge cases

Closes #47927
Related #11399

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
8 months ago
Peter Steinberger a722719720
docs: refresh synology webhook auth refs 8 months ago
Peter Steinberger 7d16359aae docs: note Chrome 146 screenshot compat fix (#60682) (thanks @mvanhorn) 8 months ago
Matt Van Horn b22f6257f0 fix(browser): remove fromSurface: false for Chrome 146+ screenshot compat 8 months ago
Peter Steinberger 05da802e1c
refactor: split device-pair command helpers 8 months ago
Peter Steinberger fdb1be0079
docs: refresh mattermost slash auth refs 8 months ago
Peter Steinberger 8a532dead2
docs: refresh browser cdp validation refs 8 months ago
Peter Steinberger 2a65bfee96
fix(mattermost): harden slash command token validation 8 months ago
Peter Steinberger 53d3fbcef6
docs: refresh browser existing session docs 8 months ago
Peter Steinberger 5583bda61d docs: note browser profile CDP validation fix (#60477) (thanks @eleqtrizit) 8 months ago
Agustin Rivera 5da360cada fix(browser): trim validation error prefix 8 months ago
Agustin Rivera aefc6fc161 fix(browser): validate profile cdp urls 8 months ago
Peter Steinberger 36cc397548
fix: reuse shared Synology Chat secret compare 8 months ago
Peter Steinberger c5b2b69f94
docs: refresh live model switch docs 8 months ago
Peter Steinberger bc356cc8c2 fix: harden direct CDP websocket validation (#60469) (thanks @eleqtrizit) 8 months ago
Agustin Rivera c3f8427973 fix(browser): validate initial cdp endpoints 8 months ago
Agustin Rivera 80720b4994 fix(browser): validate cdp websocket pivots 8 months ago
Peter Steinberger e4ea3c03cf fix: scope live model switch pending state (#60266) (thanks @kiranvk-2011) 8 months ago
kiranvk2011 b36a3a3295 fix: add .catch() to fire-and-forget stale-flag clear to prevent unhandled rejection 8 months ago
kiranvk2011 e8f6ceedd4 fix: clear stale liveModelSwitchPending flag when model already matches
When the liveModelSwitchPending flag is set but the current model already
matches the persisted selection (e.g. the switch was applied as an override
and the current attempt is already using the new model), the flag is now
consumed eagerly via a fire-and-forget clearLiveModelSwitchPending() call.

Without this, the stale flag could persist across fallback iterations and
later cause a spurious LiveSessionModelSwitchError when the model rotates
to a fallback candidate that differs from the persisted selection.

Also expands JSDoc on shouldSwitchToLiveModel to document the stale-flag
clearing and deferral semantics.
8 months ago
kiranvk2011 251e086eac fix: use explicit flag for live model switch detection in fallback chain
Replace the ambiguous comparison-based approach (hasDifferentLiveSessionModelSelection
+ in-memory map EMBEDDED_RUN_MODEL_SWITCH_REQUESTS) with a persisted
`liveModelSwitchPending` flag on SessionEntry.

The root cause: the in-memory map was never populated in production because
requestLiveSessionModelSwitch() was removed in commit 622b91d04e and replaced
with refreshQueuedFollowupSession(). This left the comparison-based detection
as the only path, which could not distinguish user-initiated model switches
(via /model command) from system-initiated fallback rotations.

The fix:
- Add `liveModelSwitchPending?: boolean` to SessionEntry (persisted)
- Set the flag to true ONLY when /model command applies a model override
- New `shouldSwitchToLiveModel()` checks the flag + model mismatch together
- New `clearLiveModelSwitchPending()` resets the flag after consumption
- Replace throw-site logic in run.ts to use the new flag-based functions
- Remove orphaned resolveCurrentLiveSelection helper

Only the /model command sets this flag, so system-initiated fallback rotations
are never mistaken for user-initiated model switches. This restores the
live-switch-during-active-run feature that was accidentally broken.

Fixes #57857, #57760, #58137
8 months ago
Peter Steinberger 678e9e6078
docs: refresh gemini cli oauth references 8 months ago
Peter Steinberger 20a7b1a9dc fix: finalize device-pair scope hardening (#55996) (thanks @coygeek) 8 months ago
Coy Geek 9dcef6df02 fix: scope pairing guard to internal gateway callers 8 months ago
Coy Geek 05ca581ed0 fix: fail closed when pairing scopes are missing 8 months ago
Coy Geek 353d93613c fix: enforce pairing approval scopes 8 months ago
Peter Steinberger 5d0562badf
docs: clarify cli backend mcp overlays 8 months ago
Peter Steinberger cc602fe9d4
docs: refresh anthropic cli backend docs 8 months ago
Peter Steinberger 3f042ed002
fix: stabilize async provider test types 8 months ago
Peter Steinberger 87d840e9ee
fix: tighten Teams and device typing 8 months ago
Peter Steinberger 75fb29ffe6
docs: refresh provider sdk hook docs 8 months ago
Peter Steinberger d1bf2c6de1
docs: clarify device token role bounds 8 months ago
Peter Steinberger e675634eb3
fix: preserve streamed Kimi tool args on repair fallback 8 months ago
Peter Steinberger 5bef64bc31 test: harden media provider auto-registration (#56279) (thanks @Ezio0) 8 months ago
Peter Steinberger 277df463d6
docs: clarify openrouter cache markers 8 months ago
Vincent Koc 39d2a719c9 refactor(providers): add family replay and tool hooks 8 months ago
Peter Steinberger 4e099689c0
feat: stream Claude CLI JSONL output 8 months ago
Peter Steinberger 2ab1f1c054
docs: clarify openai usage normalization 8 months ago
Peter Steinberger 10e0592ed0
refactor: extract device token rotate target guard 8 months ago
Vincent Koc 0a3211df2d
fix(openrouter): gate prompt cache markers by endpoint (#60761)
* fix(openrouter): gate prompt cache markers by endpoint

* test(openrouter): use claude sonnet 4.6 cache model
8 months ago
Peter Steinberger ee742cec40 fix: fallback ws usage totals (#54940) (thanks @lyfuci) 8 months ago
Peter Steinberger 4ee648c508
docs: refresh model picker provider filtering 8 months ago
复试资料 e955cffd32 Agents: widen WS usage aliases 8 months ago
复试资料 d166f2648e Agents: normalize WS usage aliases 8 months ago
Peter Steinberger 9367379771
docs: clarify prompt cache stability 8 months ago
Peter Steinberger f0d3e231ef fix: cover bundled provider picker aliases (#58819) (thanks @Luckymingxuan) 8 months ago