Skip to content

fix: improve agent draft feedback and runs sidebar resizing#5382

Merged
forestileao merged 7 commits into
mainfrom
fix/agent-draft-runs-sidebar
Jun 12, 2026
Merged

fix: improve agent draft feedback and runs sidebar resizing#5382
forestileao merged 7 commits into
mainfrom
fix/agent-draft-runs-sidebar

Conversation

@forestileao

Copy link
Copy Markdown
Collaborator

Summary

  • auto-open agent draft changes on the canvas workflow tab and keep See changes available after follow-up prompts
  • add optimistic chat message rendering plus agent send snappiness analytics
  • improve failed/send-pending agent composer copy
  • fix Runs sidebar resizing so it no longer expands to max, and start it at a smaller default width

Addresses #5270.

Validation

  • make format.js
  • make check.lint.ui
  • make check.build.ui
  • npm run test:run -- useDraftActions.spec.ts DraftActionsWidget.spec.tsx useAgentChats.spec.tsx CanvasToolSidebar/index.spec.tsx
  • npm run test:run -- CanvasRunsSidebar/index.spec.tsx CanvasToolSidebar/RunsTabPanel.spec.tsx

Signed-off-by: Pedro F. Leao <pedroforestileao@gmail.com>
Signed-off-by: Pedro F. Leao <pedroforestileao@gmail.com>
@superplanehq-integration

Copy link
Copy Markdown

👋 Commands for maintainers:

  • /sp start - Start an ephemeral machine (takes ~30s)
  • /sp stop - Stop a running machine (auto-executed on pr close)

Comment thread web_src/src/components/CanvasToolSidebar/AgentTabPanel.tsx Outdated
Signed-off-by: Pedro F. Leao <pedroforestileao@gmail.com>
Comment thread web_src/src/components/CanvasToolSidebar/AgentTabPanel.tsx Outdated
Signed-off-by: Pedro F. Leao <pedroforestileao@gmail.com>
Comment thread web_src/src/pages/app/useAgentDraftEditor.ts Outdated
Comment thread web_src/src/hooks/useAgentChats.ts Outdated
Signed-off-by: Pedro F. Leao <pedroforestileao@gmail.com>
Comment thread web_src/src/pages/app/useAgentDraftEditor.ts
Comment thread web_src/src/hooks/useAgentChats.ts Outdated
Signed-off-by: Pedro F. Leao <pedroforestileao@gmail.com>
Comment thread web_src/src/pages/app/useAgentDraftEditor.ts
Comment thread web_src/src/pages/app/useAgentDraftEditor.ts
upsertAgentMessageInCache was creating an InfiniteData entry from a
single WS message when the cache had not yet been populated by the
initial useInfiniteQuery fetch. When the real fetch lands later, the
seeded entry can shadow or merge unexpectedly with the historical
page, depending on react-query timing — and the existing spec
"does not seed the cache when no pages have been fetched yet"
expects this path to be a no-op.

Return prev unchanged when prev is undefined; let the initial fetch
populate the cache, then subsequent WS upserts merge into it.

Signed-off-by: Pedro F. Leao <pedroforestileao@gmail.com>

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Signed-off-by: Pedro F. Leao <pedroforestileao@gmail.com>

@cursor cursor Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit b8d3207. Configure here.

Comment thread web_src/src/pages/app/useAgentDraftEditor.ts
@forestileao

Copy link
Copy Markdown
Collaborator Author

👍

@forestileao forestileao merged commit 7e9f321 into main Jun 12, 2026
7 checks passed
@forestileao forestileao deleted the fix/agent-draft-runs-sidebar branch June 12, 2026 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant