Chronicle: Surface agent_name, fix SQL truncation, and improve query reliability#311838
Merged
vijayupadya merged 2 commits intomainfrom Apr 22, 2026
Merged
Chronicle: Surface agent_name, fix SQL truncation, and improve query reliability#311838vijayupadya merged 2 commits intomainfrom
vijayupadya merged 2 commits intomainfrom
Conversation
…reliability Co-authored-by: Copilot <copilot@github.com>
Contributor
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates Copilot Chronicle session storage and querying so sessions can surface an agent_name, SQL query results are less aggressively truncated, and chronicle prompts/queries use more reliable session context.
Changes:
- Add
agent_nameandagent_descriptionfields to the Chroniclesessionsschema and SessionRow typing; populateagent_namefrom OTel span attributes. - Increase chronicle query limits (to 100) and switch sessions queries to
SELECT *to include the new columns. - Improve session_store_sql result formatting by using an adaptive per-cell truncation limit instead of a fixed 100 chars.
Show a summary per file
| File | Description |
|---|---|
| extensions/copilot/src/platform/chronicle/node/sessionStore.ts | Bumps schema version and adds DB migration + upsert support for agent_name/agent_description. |
| extensions/copilot/src/platform/chronicle/common/sessionStore.ts | Extends SessionRow interface with agent_name and agent_description. |
| extensions/copilot/src/extension/tools/node/sessionStoreSqlTool.ts | Makes SQL output truncation adaptive using a global formatting budget. |
| extensions/copilot/src/extension/intents/node/chronicleIntent.ts | Updates cloud sessions query/limits and schema description; plumbs agent fields from cloud rows. |
| extensions/copilot/src/extension/chronicle/vscode-node/sessionStoreTracker.ts | Persists agent_name into the local session store during session initialization. |
| extensions/copilot/src/extension/chronicle/common/standupPrompt.ts | Includes agent in standup session lines and uses first turn text as a fallback “summary”. |
Copilot's findings
- Files reviewed: 6/6 changed files
- Comments generated: 2
Co-authored-by: Copilot <copilot@github.com>
alexdima
approved these changes
Apr 22, 2026
|
🕵️ CodeSherlock Review: 🔴 Critical Issues:
🟡 Improvements:
🟢 Good Practices:
💡 Suggestions:
Risk Level: MEDIUM |
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.
Surface agent_name, fix SQL truncation, and improve query reliability