diff options
| author | Adam <[email protected]> | 2025-12-29 10:58:53 -0600 |
|---|---|---|
| committer | Adam <[email protected]> | 2025-12-29 10:58:53 -0600 |
| commit | 66afc034d17bd47ea12c1c2e3c14f8d75acb7bce (patch) | |
| tree | 50534ae0286f5ee5b072eddc00c76aee6919f08f | |
| parent | 11ab8de59fffc05737a919d7bc7ec5f540a45cfd (diff) | |
| download | opencode-66afc034d17bd47ea12c1c2e3c14f8d75acb7bce.tar.gz opencode-66afc034d17bd47ea12c1c2e3c14f8d75acb7bce.zip | |
fix(desktop): don't show summary when already complete
| -rw-r--r-- | packages/ui/src/components/session-turn.tsx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/packages/ui/src/components/session-turn.tsx b/packages/ui/src/components/session-turn.tsx index 4a6b8b612..cedf8cef3 100644 --- a/packages/ui/src/components/session-turn.tsx +++ b/packages/ui/src/components/session-turn.tsx @@ -393,6 +393,14 @@ export function SessionTurn( if (summary()) return if (store.summaryWaitTimedOut) return + // If session was already completed before we started viewing it, + // show the response immediately without waiting for summary + const completed = lastAssistantMessage()?.time.completed + if (completed && Date.now() - completed > 2000) { + setStore("summaryWaitTimedOut", true) + return + } + const timer = setTimeout(() => { setStore("summaryWaitTimedOut", true) }, 6000) |
