fix: restored sidebar state after session reload - #3003
Conversation
|
This PR is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 10 days. |
|
Any feedback on this? @yetone |
|
This PR is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 10 days. |
|
don't we need this? |
|
This PR is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 10 days. |
|
I noticed there were issues in master. I will have a look after a few other merges. |
|
This PR is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 10 days. |
| if Config.prompt_logger.enabled then PromptLogger.log_prompt(request) end | ||
|
|
||
| if self.is_generating then | ||
| if is_active_request_state(self.current_state) then |
There was a problem hiding this comment.
maybe self.request_pending() ?
I am not familiar with the code and all the states but it seems odd that we would have to store the state. Eventually we can look at what other harnesses do and copy their behavior |
|
This PR is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 10 days. |
|
do you have a way to reproduce the issue to check this fixes the issue ? |
Summary
Why
Restoring a previous session could show the wrong sidebar state because current_state was not persisted and was re-inferred from replayed history messages. This was especially visible with ACP providers like opencode, where restored history could incorrectly replace a finished state such as succeeded with generating or thinking.
Changes