open-swe/ui/src/components/agents
Johannes du Plessis 16eb15bab3
fix: show submitted user message immediately in web chat (#1478)
* fix: render submitted user message immediately in web chat

Insert the optimistic prompt into local pendingPrompts state on submit so
the user's message appears right away instead of only after the agent
responds and thread.messages refetches.

Co-authored-by: open-swe[bot] <open-swe@users.noreply.github.com>

* fix: keep queued user prompts in submission order

Offset each pending prompt's insertAt by the number of prompts already
pending so multiple follow-ups queued before the backend echoes them
don't collide at the same splice index and render out of order. Applies
to both the local state and persisted sessionStorage paths.

Co-authored-by: open-swe[bot] <open-swe@users.noreply.github.com>

* fix: roll back optimistic message on send failure, single insertAt source

---------

Co-authored-by: open-swe[bot] <open-swe@users.noreply.github.com>
2026-06-10 09:31:56 -07:00
..
ported fix: revert dashboard stop run controls (#1461) 2026-06-08 21:47:53 -07:00
utils fix: use pierre-dark theme for diff view in dark mode (#1450) 2026-06-08 10:13:40 -07:00
AgentGitPanel.tsx feat: add Agents chat UI for cloud threads (#1323) 2026-05-22 18:15:59 +00:00
AgentPromptBar.tsx feat: add Agents chat UI for cloud threads (#1323) 2026-05-22 18:15:59 +00:00
AgentRunCard.tsx feat: add scheduled web agents (#1422) 2026-06-05 02:20:24 +00:00
AgentsHome.tsx feat: support dashboard chat images (#1435) 2026-06-06 11:50:24 -07:00
AgentsSidebar.tsx perf: preload agent thread details (#1448) 2026-06-08 14:07:55 -07:00
AgentThreadView.tsx fix: show submitted user message immediately in web chat (#1478) 2026-06-10 09:31:56 -07:00
AutomationEditor.tsx feat: add scheduled web agents (#1422) 2026-06-05 02:20:24 +00:00
AutomationsList.tsx feat: add scheduled web agents (#1422) 2026-06-05 02:20:24 +00:00
RepoSelector.tsx fix: stabilize agent selector defaults (#1414) 2026-06-04 21:06:25 +00:00
ScheduleTriggerPicker.tsx feat: add scheduled web agents (#1422) 2026-06-05 02:20:24 +00:00
SlackConnectDialog.tsx fix: reliable, safe Slack account-connect prompt + first-login Slack dialog (#1383) 2026-06-02 20:55:07 -07:00
z-index.ts feat: add Agents chat UI for cloud threads (#1323) 2026-05-22 18:15:59 +00:00