fix(linear): stabilize agent session event threads - #885
Merged
Merged
Conversation
Signed-off-by: dcbuild3r <dcbuilder@pm.me>
Contributor
|
@dcbuild3r is attempting to deploy a commit to the Vercel Team on Vercel. A member of the Team first needs to authorize it. |
Signed-off-by: dancer <josh@afterima.ge>
dancer
enabled auto-merge (squash)
September 2, 2026 17:24
dancer
approved these changes
Sep 2, 2026
dancer
disabled auto-merge
September 2, 2026 17:25
patrick-chinchill
added a commit
to Chinchill-AI/chat-sdk-python
that referenced
this pull request
Oct 1, 2026
…termined comment mentions (#232) Linear agent sessions now route every event to one stable thread, linear:{issueId}:s:{agentSessionId}, instead of one :c:{comment}:s:{session} thread per source comment. Ports upstream 3d2cb22a (vercel/chat#885, chat@4.40.0): rootless sessions are dispatched with a synthetic root comment, creator-less sessions are authored by linear-automation, prompted events fall back to the activity id, and fetch pages agentSession.activities for sessions with no root comment. Ports the Linear half of fcdc1c9e (vercel/chat#946, chat@4.41.0): agent-session comments are is_mention=True, and ordinary comments leave is_mention unset so core @mention detection runs. Divergence: the activities query is raw GraphQL, checked against Linear's published schema (no Python @linear/sdk). Documented in docs/UPSTREAM_SYNC.md. Consumer impact: new agent-session events use the stable session thread id. Stored old :c:...:s:... ids still decode to the same session, so posting to them still works. Closes #232
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.
Summary
Route every event in a Linear agent session to the stable issue/session thread instead of deriving a new thread from each source comment. Also accept sessions created without a root comment and attribute creator-less sessions to a distinct Linear automation identity instead of the bot itself, which previously caused automation-created sessions to be dropped as self-messages.
Test plan
Checklist