mirror of
https://github.com/multica-ai/multica.git
synced 2026-07-16 14:49:09 +02:00
* fix(editor): include done issues in @ mention search The mention picker filtered against the cached issue list, which only holds the first page of done issues. Older done issues were unfindable via @, so users had to hand-write `[MUL-xxx](mention://issue/...)` to reference them. Switch the issue portion of the picker to the server-side search endpoint with `include_closed=true` (matching the global Cmd+K search), debounced and abortable. Done/cancelled rows render dimmed with a strikethrough title so they remain visually distinct but selectable. * fix(editor): unblock member/agent results in @ mention picker The previous patch made items() async and awaited the server-side issue search before returning anything, which forced even local member/agent matches to wait for the 150ms debounce + roundtrip. Return sync items (members, agents, cached issues) immediately and let the renderer be updated in-place when extra server results arrive. Also move the search seq/abort state into the createMentionSuggestion closure so concurrent ContentEditor instances no longer abort each other's fetches, and aborts on cleanup so a late response can't write to a destroyed renderer. Adds a focused test that locks in the sync member/agent path and the include_closed=true flag.