Skip to content

Commit cf75a1a

Browse files
ericdalloeca
andcommitted
Fix /resume getting stuck when resumed chat had stale compaction flags
When /resume copies the old chat state, it now clears :auto-compacting? and :compacting? flags alongside :prompt-finished?. Stale compaction flags caused finish-chat-prompt! to silently skip, leaving the UI stuck at "Parsing given context". 🤖 Generated with [eca](https://eca.dev) Co-Authored-By: eca <git@eca.dev>
1 parent af1f953 commit cf75a1a

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
## Unreleased
44

5+
- Fix `/resume` getting stuck when resumed chat had stale compaction flags.
6+
57
## 0.122.0
68

79
- Improve summary of filesystem and shell functions making cleaner.

src/eca/features/commands.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@
406406
:else
407407
(let [chat (get chats selected-chat-id)]
408408
(swap! db* assoc-in [:chats chat-id] chat)
409-
(swap! db* update-in [:chats chat-id] dissoc :prompt-finished?)
409+
(swap! db* update-in [:chats chat-id] dissoc :prompt-finished? :auto-compacting? :compacting?)
410410
(swap! db* update-in [:chats] #(dissoc % selected-chat-id))
411411
(db/update-workspaces-cache! @db* metrics)
412412
{:type :chat-messages

0 commit comments

Comments
 (0)