mirror of
https://github.com/zed-industries/zed.git
synced 2026-06-02 07:04:33 +00:00
clear contexts first on populate
This commit is contained in:
parent
1d80ea1751
commit
e494772cd6
1 changed files with 2 additions and 0 deletions
|
|
@ -226,6 +226,8 @@ impl AssistantChat {
|
|||
}
|
||||
|
||||
let context_id = self.next_context_id.post_inc();
|
||||
|
||||
self.user_message(submitted_id).contexts.clear();
|
||||
self.user_message(submitted_id)
|
||||
.contexts
|
||||
.push(AssistantContext::codebase(context_id));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue