Repository navigation
feat(composer): # tags a thread on any of your computers, and its link names the computer - #2535
Merged
Merged
Conversation
…link naming the computer
…e modal's other exports; docs: # thread tags
TheAnimatrix
force-pushed
the
hash-thread-tags
branch
from
December 1, 2026 09:30
a06f01f to
1ed48f4
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
There is no quick way to point an agent or a bot at another thread from the composer. You have to find the thread, use Copy reference and paste. On a thread from another computer, a bare id can make the agent search for it or guess.
Change
#in an agent thread's or a bot chat's composer opens the same list@uses, titled "Threads to tag". It lists the owner's threads on every linked computer by title.mousse://thread/<computer>:<id>). One undo takes the pick back. The composer chip now shows when a thread's computer is offline or not sharing, instead of looking deleted.#123, colours (#fff), headings (# Title),C#,page#top, anything in code and a/command's text never open the list. Rows that can't be tagged come last, so Enter never lands on one.threads.searchtakestitlesOnlyacross computers (routed version 3), on its own lane so it never cuts short the palette's search or the sidebar filter. A computer running an older version answers with all its hits, and only the title matches are kept.#tag's link carries the thread's id, with its computer, and to pass it tothread_readas it is (THREAD_TAG_GUIDANCE, used in the Mousse tool instructions and inthread_read'sthreadId).Verification
Tier 4 (renderer, IPC, routed protocol).
node scripts/verify.mjs <23 named files> --typecheck allon 1ed48f4, rebased on master after fix(threads): tag local and linked bots with @ #2515: typecheck clean for web and node. Tests: 954 passed and 17 failed, all intests/threadSqliteStorage.test.ts(EPERMremoving temp folders on this Windows machine), which fails the same way on master.tests/renderer/threadTags.test.tsmounts the real agent-thread chat. It checks the rows, details, private and greyed rows and the "Not searched" line, that Enter and a click insert the chip, and that the sent text ismousse://thread/<this computer>:<id>ormousse://thread/<Mac>:<id>. It also checks the private-thread rule, and that#2512,#fffand# Headingopen nothing.tests/renderer/botChatView.test.ts: in a bot chat,#lists threads, the private one reads "Private · bots can't read it", and a pick is sent as its link.tests/net/bridge/routed/mergedListsLinked.test.ts: two real services. AtitlesOnlysearch finds the other computer's archived thread by title, never a message-only hit, while the palette's search runs at the same time.tests/chatModes.test.ts: a table of which#text opens the list. A/command's text never does, because its arguments may be secrets (/secformfields) and the query is searched on every computer.Dev-app check on the Mac mini (isolated dev home, hidden Electron driven by Playwright): the list opens like
@with marked titles, project and Archived labels; a greyed private row does nothing on click; Enter inserts the chip, and one Cmd+Z takes it back;Fixes #2512,#fff,# Headingand`#pair`stay closed; in a bot chat the private row reads "Private · bots can't read it".That check found that a greyed row that was the newest match got the first highlight, so Enter did nothing. Greyed rows now go last, and
threadTags.test.tscovers it.Notes
The design and mocks came from a design review. Related: #2516 (links carry their computer), merged. Rebased on #2515 (bots in
@)./secform(branchsecform) merges cleanly with this branch.No issue