Skip to content

fix(desktop): list a delegate in the machine it runs on and read its answer as plain text - #3452

Merged
LHagfoss merged 1 commit into
mainfrom
feat/3440-3441-remote-delegates
Nov 11, 2026
Merged

LHagfoss merged 1 commit into
mainfrom
feat/3440-3441-remote-delegates

Conversation

@LHagfoss

Copy link
Copy Markdown
Owner

What

A delegate started on a paired machine from another computer was nested under its parent here, and the machine's Devices view skips nested threads, so that machine listed none of its own delegates (#3441). It now keeps a row in the machine it runs on, with a from <thread> on <machine> hint that opens the parent; it is still nested under the parent. An empty machine says "No threads on this machine yet." with a New thread button that starts one there. The rule is crossMachineDelegates in src/state/sidebarGroups.ts.

For #3440 this PR changes how a delegate's answer reads, not why it was marked Failed:

  • the row's preview is plain text (first prose line; a table-only answer reads as its cells, no pipes) instead of the raw first line;
  • a failed row previews the turn's error, stored apart from the reply (Link.error), instead of the reply drawn in the error colour.

Not fixed: why the remote Claude Code delegate's link settled as failed after a full answer. A failed link comes only from the prompt request rejecting (runPrompt in src/state/store.ts treats any rejection, including a dropped machine connection, as a failed turn). I could not reproduce or confirm the cause from the code alone, so #3440 stays open.

Changelog

A delegate running on another machine now appears in that machine's thread list, and delegate rows show a plain-text preview of the answer.

Testing

  • bun run check in apps/desktop: typecheck, lint, 2031 tests, build.
  • New unit tests: crossMachineDelegates with a remote delegate whose parent is local (sidebarGroups.test.ts), and answerPreview (answerPreview.test.ts).

Closes #3441
Refs #3440

@github-actions github-actions Bot added the fix A bug fix label Nov 11, 2026
@LHagfoss
LHagfoss merged commit fbb3b6f into main Nov 11, 2026
9 checks passed
@LHagfoss
LHagfoss deleted the feat/3440-3441-remote-delegates branch November 11, 2026 08:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix A bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(desktop): list a machine's delegate threads in its Devices view

1 participant