opencode/packages/ui
Makonnen 21e7f3f5c1 fix: use parentID matching instead of ID ordering for prompt loop exit and message rendering
When the client clock is ahead of the server, user message IDs (generated
client-side) sort after assistant message IDs (generated server-side).
This broke the prompt loop exit check and the UI message pairing logic.

- Extract shouldExitLoop() into a pure function that uses parentID matching
  instead of relying on ID ordering
- Extract findAssistantMessages() with forward+backward scan to handle
  messages sorted out of expected order due to clock skew
- Remove debug console.log statements added during investigation
- Add tests for both extracted functions

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-01 20:25:54 -04:00
..
script feat(app): sidebar reveal animation, hover peek overlay, and weaker dividers (#16374) 2026-03-06 16:33:34 -06:00
src fix: use parentID matching instead of ID ordering for prompt loop exit and message rendering 2026-04-01 20:25:54 -04:00
.gitignore
package.json release: v1.3.13 2026-04-01 00:44:06 +00:00
sst-env.d.ts zen: update sst version 2026-02-18 13:54:23 -05:00
tsconfig.json chore: storybook (#15285) 2026-02-26 16:05:04 -06:00
vite.config.ts feat: Make the models.dev domain configurable for offline environments (#9258) 2026-01-21 11:23:07 -06:00