You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 6c385f4
Browse filesBrowse the repository at this point in the historyBrowse files
feat(chat): answer question prompts orphaned by OpenCode server restart
When the OpenCode server restarts while a question tool call is waiting,
the pending request only lived in server memory and is destroyed
(upstream anomalyco/opencode#36347), leaving the chat stuck with no
answerable card. Detect question tool parts stranded pending/running in
the last message of an idle session and re-render them as answerable
QuestionCards: submitting re-checks the server first (question.reply
when still pending) and otherwise delivers the answers as a new user
message using the asking assistant message's model/agent.
Copy file name to clipboardExpand all lines: packages/ui/src/lib/i18n/messages/en.ts
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1878,6 +1878,8 @@ export const dict = {
1878
1878
'chat.questionCard.submitFailed': 'Failed to send response',
1879
1879
'chat.questionCard.dismissFailed': 'Failed to dismiss question',
1880
1880
'chat.questionCard.noLongerPending': 'This question is no longer waiting for a response.',
1881
+
'chat.questionCard.orphanedBadge': 'Interrupted',
1882
+
'chat.questionCard.orphanedNotice': 'The session restarted before this question was answered. Your answer will be sent to the agent as a new message.',
1881
1883
'chat.questionCard.tryAgain': 'Please try again in a moment.',
1882
1884
'chat.textSelection.toast.noProject': 'No project found for this session',
1883
1885
'chat.textSelection.toast.addToNotesFailed': 'Failed to add to notes',
"chat.questionCard.orphanedNotice": "La sesión se reinició antes de que esta pregunta fuera respondida. Tu respuesta se enviará al agente como un mensaje nuevo.",
1859
1861
"chat.questionCard.tryAgain": "Inténtalo de nuevo en un momento.",
1860
1862
"chat.textSelection.toast.noProject": "No se encontró proyecto para esta sesión",
1861
1863
"chat.textSelection.toast.addToNotesFailed": "No se pudo añadir a las notas",
Copy file name to clipboardExpand all lines: packages/ui/src/lib/i18n/messages/fr.ts
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -2754,6 +2754,8 @@ export const dict = {
2754
2754
'chat.questionCard.submitFailed': 'Impossible d’envoyer la réponse',
2755
2755
'chat.questionCard.dismissFailed': 'Impossible d’ignorer la question',
2756
2756
'chat.questionCard.noLongerPending': 'Cette question n’attend plus de réponse.',
2757
+
'chat.questionCard.orphanedBadge': 'Interrompue',
2758
+
'chat.questionCard.orphanedNotice': 'La session a redémarré avant que cette question ne reçoive une réponse. Votre réponse sera envoyée à l’agent sous forme de nouveau message.',
2757
2759
'chat.questionCard.tryAgain': 'Veuillez réessayer dans un instant.',
'chat.questionCard.submitFailed': 'Nie udało się wysłać odpowiedzi',
760
760
'chat.questionCard.dismissFailed': 'Nie udało się odrzucić pytania',
761
761
'chat.questionCard.noLongerPending': 'To pytanie nie czeka już na odpowiedź.',
762
+
'chat.questionCard.orphanedBadge': 'Przerwane',
763
+
'chat.questionCard.orphanedNotice': 'Sesja została uruchomiona ponownie, zanim udzielono odpowiedzi na to pytanie. Twoja odpowiedź zostanie wysłana do agenta jako nowa wiadomość.',
762
764
'chat.questionCard.tryAgain': 'Spróbuj ponownie za chwilę.',
763
765
'chat.textSelection.toast.noProject': 'Nie znaleziono projektu dla tej sesji',
764
766
'chat.textSelection.toast.addToNotesFailed': 'Nie udało się dodać do notatek',
"chat.questionCard.orphanedNotice": "A sessão foi reiniciada antes desta pergunta ser respondida. Sua resposta será enviada ao agente como uma nova mensagem.",
1859
1861
"chat.questionCard.tryAgain": "Tente novamente em instantes.",
1860
1862
"chat.textSelection.toast.noProject": "Não foi encontrado projeto para esta sessão",
1861
1863
"chat.textSelection.toast.addToNotesFailed": "Não foi possível adicionar às notas",
"chat.questionCard.submitFailed": "Не вдалося надіслати відповідь",
1857
1857
"chat.questionCard.dismissFailed": "Не вдалося відхилити питання",
1858
1858
"chat.questionCard.noLongerPending": "Це питання більше не очікує відповіді.",
1859
+
"chat.questionCard.orphanedBadge": "Перервано",
1860
+
"chat.questionCard.orphanedNotice": "Сесію було перезапущено до того, як на це питання відповіли. Вашу відповідь буде надіслано агенту як нове повідомлення.",
1859
1861
"chat.questionCard.tryAgain": "Спробуйте ще раз за мить.",
1860
1862
"chat.textSelection.toast.noProject": "Для цієї сесії не знайдено жодного проєкту",
1861
1863
"chat.textSelection.toast.addToNotesFailed": "Не вдалося додати до нотаток",
0 commit comments