open-swe/ui/src/components/agents
Johannes du Plessis 911c835c2a
feat: chat with your PR on the review page (#1534)
* feat: chat with your PR on the review page

Add a sandbox-less `chat` graph that answers questions about a single PR
from its diff, the published review findings, and read-only GitHub access.

- agent/chat.py: deepagents graph, no sandbox (default StateBackend, file
  mutation + execute tools excluded). PR context is seeded as virtual files
  under /pr/; a repo-scoped App token is resolved in-graph.
- tools: read_repo_file, search_repo_code, list_review_findings.
- dashboard/review_chat_api.py + routes: per-user chat thread, LangGraph
  stream/commands/state/history proxy pinned to the chat assistant, seeds
  diff/findings/overview on first run. Gated by repo access.
- UI: Chat tab wired to a chat-scoped StreamProvider (replaces Coming Soon).

* feat: admin setting for review-chat default model

Add a 'Open SWE Review Chat' default to team settings (default_chat_model /
default_chat_reasoning_effort). get_team_default_model("chat") inherits the
Agent default when unset; the chat graph resolves through it. Admin RolePicker
gains an 'Agent default' inherit option that clears the override.

* feat: multi-conversation review chat (tabs, new chat, history)

Replace the single per-PR chat thread with multiple per-user conversations:
- threads minted client-side; first message persists with a title derived
  from the prompt.
- list + delete endpoints; chat panel gets a tab strip (history), new-chat
  (+), close (x), refresh, an intro greeting, and suggested prompts.
- get_review_chat now returns availability only (ids are client-minted).

* ui fixes

* ui: review-chat history dropdown, full-width AI replies, resizable side panel

* fix(review-chat): enforce per-user thread ownership on proxy endpoints; reseed PR context on head change

---------

Co-authored-by: open-swe[bot] <open-swe@users.noreply.github.com>
2026-06-15 17:17:30 -07:00
..
messages feat(ui): soften long-message scroll indicator to a fade (#1531) 2026-06-15 13:32:05 -07:00
ported feat(ui): soften bash tool output scroll indicator to a fade (#1532) 2026-06-15 20:39:52 +00:00
subagents fix: show subagent current status instead of full tool-call list (#1528) 2026-06-15 10:53:28 -07:00
utils feat(open-swe): stream agent chat via @langchain/react v2 protocol (#1475) 2026-06-11 09:54:35 -07:00
AgentGitPanel.tsx fix: enforce minimum chat width so the git panel can't squish it (#1526) 2026-06-15 10:52:45 -07:00
AgentPromptBar.tsx feat: add Agents chat UI for cloud threads (#1323) 2026-05-22 18:15:59 +00:00
AgentRunCard.tsx feat: track PR lifecycle state per thread for sidebar (#1492) 2026-06-11 12:21:59 -07:00
AgentsHome.tsx feat: mark threads as resolved to hide from sidebar (#1500) 2026-06-12 12:01:42 -07:00
AgentsSidebar.tsx fix: keep sidebar thread rows at a fixed height on hover (#1536) 2026-06-15 16:15:27 -07:00
AgentsThreadsPage.tsx feat: mark threads as resolved to hide from sidebar (#1500) 2026-06-12 12:01:42 -07:00
AgentThreadView.tsx fix: enforce minimum chat width so the git panel can't squish it (#1526) 2026-06-15 10:52:45 -07:00
AutomationEditor.tsx feat(open-swe): stream agent chat via @langchain/react v2 protocol (#1475) 2026-06-11 09:54:35 -07: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
ReviewChat.tsx feat: chat with your PR on the review page (#1534) 2026-06-15 17:17:30 -07:00
ReviewSidebar.tsx feat: render Reviews page diffs with pierre MultiFileDiff (#1517) 2026-06-12 11:03:51 -07: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