mirror of
https://github.com/lobehub/lobehub
synced 2026-04-21 09:37:28 +00:00
* ♻️ refactor(chat): remove reject-only button, unify to rejected_continue Server-side `decision='rejected'` and `decision='rejected_continue'` share the exact same code path — both surface the rejection to the LLM as user feedback. Having a separate "reject only" button added UI complexity without behavioural difference. - Remove the "仅拒绝" button from InterventionBar popover; the single "拒绝" button now calls `rejectAndContinueToolCall` directly - `rejectToolCalling` Gateway branch sends `rejected_continue` instead of `rejected` so all rejection paths use one decision value Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * Update ApprovalActions.tsx * ✨ feat(tool): add executors field to BuiltinToolManifest and dispatch page-agent to client Add `executors?: ('client' | 'server')[]` to `BuiltinToolManifest` so each builtin tool declares where it can run. The server-side dispatch logic in `aiAgent/index.ts` now reads this field instead of hardcoding per-identifier checks. - `lobe-local-system`: `executors: ['client', 'server']` — runs on client via Electron IPC or server via Remote Device proxy - `lobe-page-agent`: `executors: ['client']` — requires EditorRuntime, client-only - Stdio MCP plugins still use the `customParams.mcp.type` heuristic (not manifest-driven) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| src | ||
| package.json | ||
| vitest.config.mts | ||