Where is sessionID is defined ? Is it created after chat handshake or before that #6995
Replies: 4 comments
-
|
{ I want to know how "sessionId": "3e71749a-b346-4170-be5d-01044c287190", is generating |
Beta Was this translation helpful? Give feedback.
-
|
@Priyanshukeshri That is, it's created on the client side whenever a new session is created. |
Beta Was this translation helpful? Give feedback.
-
|
Session ID semantics matter more than they seem at first — they determine what counts as "one conversation" for memory, billing, and audit purposes. A distinction that's worth making explicit in your design: Session scope vs context scope — a "session" in the IDE sense (one file editing session) often spans multiple "contexts" (switching between tasks, different code files). If session ID = context ID, you lose the ability to do cross-session memory consolidation. If they're separate, you can maintain continuity across IDE restarts. Session as billing unit — if you're doing any cost attribution (to teams, users, or projects), the session boundary determines what gets charged where. Creating a new session ID mid-task can split costs in confusing ways. Session for agent continuity — if Continue ever adds agent-style execution (run this refactor across N files, fix all tests), the session ID needs to survive across multiple tool call rounds. Otherwise the agent "forgets" what it was doing mid-task. We hit this designing the conversation→session→user hierarchy in KinthAI. The pattern we use: More context on the architecture here: https://blog.kinthai.ai/why-character-ai-forgets-you-persistent-memory-architecture — covers how session/memory/identity interact. Is the session ID currently client-generated or server-issued? That choice has implications for multi-device continuity. |
Beta Was this translation helpful? Give feedback.
-
|
The Looking at the Continue architecture: the session represents a conversation thread between the IDE extension and the language model. The flow is roughly:
For self-hosted Continue server setups: For direct-to-API setups (no Continue server): Why this matters for custom integrations: Is your question about the protocol-level session management (for building a custom Continue server) or about inspecting session data for debugging? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Issue Category
Undocumented feature or missing documentation
Affected Documentation Page URL
No response
Issue Description
Where is sessionID is defined ? Is it created after chat handshake or before that
Expected Content
No response
Beta Was this translation helpful? Give feedback.
All reactions