Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion session.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func guessSessionID(client Client, r *http.Request) *string {
case ClientKilo:
return cleanRef(r.Header.Get("X-KILOCODE-TASKID"))
case ClientCoderAgents:
return nil // Session ID support planned in a follow-up.
return cleanRef(r.Header.Get("X-Coder-Chat-Id"))
case ClientRoo:
return nil // RooCode doesn't send a session ID.
case ClientCursor:
Expand Down
8 changes: 7 additions & 1 deletion session_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,13 @@ func TestGuessSessionID(t *testing.T) {
},
// Coder Agents.
{
name: "coder_agents_returns_empty",
name: "coder_agents_with_chat_id",
client: ClientCoderAgents,
headers: map[string]string{"X-Coder-Chat-Id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"},
sessionID: utils.PtrTo("a1b2c3d4-e5f6-7890-abcd-ef1234567890"),
},
{
name: "coder_agents_without_chat_id",
client: ClientCoderAgents,
},
// Roo.
Expand Down
Loading