mirror of
https://github.com/cline/cline.git
synced 2026-10-30 18:12:49 +08:00
* feat(desktop): route /team prompts through core runtime Rewrite desktop `/team` commands as structured user command blocks before sending them to the core runtime. Validate task input and respect the globally disabled Teams tool setting. Remove legacy agent spawn and team enablement flags from session configuration, and add coverage for prompt rewriting and disabled-tool behavior. * fix(desktop): preserve team tool defaults * fix(desktop): display queued /team prompts as their slash form Queued prompts are stored in their runtime form, so a queued /team command showed its raw <user_command> envelope in the prompt queue chip and edit textarea. Fold queue items through formatDisplayUserInput for display; saving an edit re-resolves the slash form through the sidecar, so the round trip is lossless. Co-authored-by: Saoud Rizwan <saoudrizwan@users.noreply.github.com> * chore(hub): align builtin tool catalog flags with the desktop sidecar The desktop sidecar pins enableSpawnAgent/enableAgentTeams when listing the builtin tool catalog; the hub's parallel listing did not, so the two would drift if the preset defaults ever change. Pin the same flags in the hub and cross-reference the two call sites. Co-authored-by: Saoud Rizwan <saoudrizwan@users.noreply.github.com> * chore(desktop): drop inert enableSpawn/enableTeams config leftovers buildCoreSessionConfig no longer reads these keys, so remove the dead schema fields, default-config initializers, and chat-test payload entries. The chat-session regression test still sends them on purpose to prove legacy flags cannot override the runtime's tool presets. Co-authored-by: Saoud Rizwan <saoudrizwan@users.noreply.github.com> * fix(desktop): reject /team when the mode's tool preset disables teams The /team guard only checked the global disabled-tools setting, but the runtime resolves tool availability from the mode's preset, so a preset without team tools (yolo) would still send the model a spawn-a-team instruction it cannot act on. Resolve the teams catalog entry for the session's mode and reject /team when it is unavailable, mirroring the runtime's own availability logic. Co-authored-by: Saoud Rizwan <saoudrizwan@users.noreply.github.com> --------- Co-authored-by: Saoud Rizwan <7799382+saoudrizwan@users.noreply.github.com> Co-authored-by: Saoud Rizwan <saoudrizwan@users.noreply.github.com>