-
Notifications
You must be signed in to change notification settings - Fork 1.3k
feat: integrate agent context snapshots into chats #26389
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1457,6 +1457,11 @@ func (p *Server) CreateChat(ctx context.Context, opts CreateOptions) (database.C | |
| // committed and emitted its own state-machine notifications. The | ||
| // watch endpoint is maintained separately from chatstate notifications. | ||
| p.publishChatPubsubEvent(chat, codersdk.ChatWatchEventKindCreated, nil) | ||
|
|
||
| // Pin the chat to the agent's latest context snapshot if one exists. | ||
| // Best-effort: a chat created before its agent has pushed is hydrated | ||
| // by that agent's next push. | ||
| p.hydrateChatContextOnCreate(ctx, chat) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Note [CRF-17] The
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Acknowledged — deferring to the UI phase as the Note suggests. No watcher consumes — 🤖 Coder Agents, on behalf of @kylecarbs |
||
| return chat, nil | ||
| } | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.