Repository navigation
Commit abb4d57
fix(tui): don't clear conversation model override on transient retrieve errors
The sync effect's catch block was calling applyAgentModelLocally() on any
conversations.retrieve failure, which cleared the hasConversationModelOverride
flag and reset the model display to agent defaults — even though the override
was still persisted in the DB. This caused intermittent model snap-back that
didn't require a recent /model command to trigger: any transient network error
during the sync cycle would discard the local override knowledge, and without
another agentState change to re-trigger the effect, the reset persisted for
the remainder of the turn.
The fix simply preserves current local state on error. The next sync cycle
will retry the retrieve and self-correct if needed.
👾 Generated with [Letta Code](https://letta.com)
Co-Authored-By: Letta Code <noreply@letta.com>1 parent 603e594 commit abb4d57
1 file changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3376 | 3376 | | |
3377 | 3377 | | |
3378 | 3378 | | |
3379 | | - | |
| 3379 | + | |
| 3380 | + | |
| 3381 | + | |
| 3382 | + | |
| 3383 | + | |
| 3384 | + | |
| 3385 | + | |
3380 | 3386 | | |
3381 | 3387 | | |
3382 | 3388 | | |
| |||
0 commit comments