Skip to content

compile fix - #3

Merged
SWangHash merged 1 commit into
mainfrom
ljl
Apr 28, 2026
Merged

SWangHash merged 1 commit into
mainfrom
ljl

Conversation

@826193720

Copy link
Copy Markdown
Collaborator

No description provided.

@SWangHash
SWangHash merged commit 506986d into main Apr 28, 2026
1 of 2 checks passed
SWangHash pushed a commit that referenced this pull request Aug 31, 2026
…arden adapter fence

Address PR GCWing#2428 review round 3 (issues #1-#3):

1. CLI peer host lacked a `cancel_tool` route. Expose `cancel_tool` on
   `CoreAgentRuntimeCompatibility` (delegates to the coordinator), add the
   CLI dialog handler + dispatch branch, and advertise the `cancel_tool`
   capability in both desktop and CLI `peer_mode_ping`.

2. CLI peer host lacked a `get_all_tools_info` route and the tool-info DTO
   was duplicated between desktop and core. Add a shared `ToolInfoDto` +
   `build_tool_info`/`build_all_tools_info` in core (backed by the global
   tool registry), a thin CLI `tools` handler + dispatch branch, and the
   `tool_catalog` capability in both `peer_mode_ping` surfaces. Desktop's
   `tool_api` now aliases the core DTO instead of redefining it.

3. The ESLint adapter fence leaked: a global `ignores` entry for
   `src/shared/context-system/core/types/**` let direct/dynamic `invoke`
   imports pass lint there. Drop the blanket ignore and add a targeted
   override that exempts only `react-hooks/rules-of-hooks`; the fence
   rules now apply. Add a config-level regression test pinning that both
   the ordinary business dir and the context-system types dir block
   invoke, while the adapter exception still permits it.

Frontend: propagate `cancelTool`/`toolCatalog` capabilities through the
peer-device snapshot/context, gate the Terminal interrupt button and the
tool-catalog fetches (useAgentsList, AssistantDefaultsPage) on host
support; default to allowed when capabilities are unknown to avoid flicker.

Co-Authored-By: Claude <noreply@anthropic.com>
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