Repository navigation
Conversation
|
Instructions to get the build to run: |
48a3068 to
4e7d28a
Compare
|
Still working through the community contribution model for UX changes so can't provide a review timeline as of now. Additional context can be found here: |
joahg
left a comment
There was a problem hiding this comment.
🤖 This account isn't approving UI changes, so this is a COMMENT. It adds a confirmation dialog and needs a design or core-team reviewer. One docs defect should be fixed first.
Findings:
- Docs defect:
docs/buzz-help.mdstill contains a leftover conflict-marker line,||||||| parent of 48a3068 (...), followed by a duplicate "files the chat right away." That ships in the bundled help text. It looks like a bad rebase resolution, so please remove those two lines. - Delete paths: in Solo,
removeSectionhas one caller, the Delete workspace menu item, and it now goes through the dialog. The channel sidebar's Remove section is a separate store and path, and it already confirms. The old inlineprojectErrorparagraph was only set by delete, so removing it loses no other errors. On main the Solo menu item still deletes on the first click. - What a delete removes: the group and all of its chat assignments, which return to Chats. The chats are not deleted. After that, a best-effort write blanks the workspace's settings record (instructions, folders and agents) and renames it "Deleted workspace". That record syncs, so the clear reaches other devices, and it is not undoable. The dialog text matches this. If that second write fails, the settings stay hidden but are not cleared. That is the existing behaviour and is not new here.
- No FOUNDATION-marked files are touched. A merge-tree against main shows no conflicts, although GitHub reports the PR as conflicting. A rebase would still be tidy.
I read the diff, SoloWorkspaces.tsx, AlertDialog, solo-preferences and SidebarSection. I did not run the tests or the app. I did not check screen-reader behaviour, very long workspace names in the title, or other callers outside src.
| work in that folder for the rest of the conversation. A chip someone else | ||
| sends, or a folder no longer in your repositories folder, grants nothing. | ||
| A bare **!**, or **!** before a space, stays text. | ||
| ||||||| parent of 48a3068 (fix(solo): ask before deleting a workspace) |
There was a problem hiding this comment.
🤖 Stray conflict marker from the rebase. Please delete this line and the duplicate "files the chat right away." line below it.
Solo's "Delete workspace" deleted on the first click. Since block#2819 it also clears the workspace's instructions, folders and agents on every device, so a misclick lost that setup for good. Every neighboring destructive action (Remove section, Delete team, Delete agent) already asks first. The menu item now opens the shared AlertDialog, "Delete {name}?", with Cancel focused. Confirming runs the existing removeSection; a failure stays in the dialog for retry, and focus returns to the heading or to Chats. Follows the pattern from block#2820. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Jonathan Ho <jonathanho@squareup.com>
4e7d28a to
e215001
Compare
joahg
left a comment
There was a problem hiding this comment.
🤖 Re-checked at e215001e, which is a rebase onto main plus fixes. The leftover conflict-marker line and the duplicate "files the chat right away." are gone from docs/buzz-help.md, and I found no other conflict markers in the file. The PR touches only its three files.
The one functional change since my last review: a rejected delete now keeps the dialog open and shows the error inside it (deleteError). It's cleared when the dialog closes or on retry. Before, the error was shown in the sidebar under the menu. That fits the dialog better, and the test covers retrying after a rejected delete.
Same stance as before: this adds a confirmation dialog, so it needs a design or core-team reviewer.
|
🤖 Agent design review for Morgan Martin (not human design sign-off). Reviewed commit Intent: stop a single misclick from destroying a Solo workspace's setup on every device by asking first. The diff does that with the shared Concrete issue
Design preference (optional)
Not checked
|
|
🤖 Agent design review for tulsi (tulsi-builder), not human design sign-off. Reviewed Intent: stop one misclick on Delete workspace from wiping a Solo workspace's setup on every device, by asking first and keeping any failure inside the confirmation. Using the shared Failures
Design preferences
Not checked: I didn't render it. I judged from the PR's 8 screenshots (light, dark, error, 480 px, 150% text, before and after) and the diff. Two of the light shots look like they were taken mid-fade, so I judged the surface from the error shot. I didn't check the pending spinner state, a very long workspace name in the title, the desktop WKWebView, or a screen reader. |
The delete confirmation showed removeSection's raw error, e.g. "Please wait
a second before saving this recipe again". Those messages are written for
developers ("recipe", "Outbox", "Sidebar section"), and the dialog now puts
them front and centre. Always show "Workspace could not be deleted. Try
again." instead; the dialog stays open, so Delete workspace retries.
Raised in the agent design review on block#3282.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Jonathan Ho <jonathanho@squareup.com>
"Its instructions, folders and agents are cleared" read as if the agents themselves were deleted. Only the workspace's own agent list goes (block#2819); the agents stay in Agents. The dialog now says "agent list" and "your agents aren't deleted", matching Delete team. It also said "Its chats move to Chats" for an empty workspace. It now uses the real count ("1 chat moves", "2 chats move"), as Remove section does, and leaves the sentence out when there are none. Raised in the agent design review on block#3282. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Jonathan Ho <jonathanho@squareup.com>
|
🤖 Closing this: #3791 added a confirmation to Remove workspace in the unified sidebar, which covers the main case this PR fixed. One gap remains: when a plugin composes the Solo region (e.g. Nexus), Delete workspace in |
Summary
Delete workspace, in a Solo workspace's … menu, deleted the workspace on the first click, with no confirmation and no Undo. Since #2819 that delete also clears the workspace's instructions, folders and agent list on the relay, so one misclick removes that setup from every device.
Delete workspace now opens an
AlertDialog, "Delete {name}?", with Cancel focused:The first sentence uses the workspace's real chat count, as Remove section does, and is left out for an empty workspace. "Your agents aren't deleted" matches Delete team: only the workspace's own agent list goes (#2819).
preferences.removeSection. The dialog stays open while it runs. If it fails, the dialog shows "Workspace could not be deleted. Try again." and Delete workspace retries. The raw removal errors are developer wording ("recipe", "Outbox"), so they aren't shown. On success, focus moves to Chats, which now holds the workspace's chats.docs/buzz-help.mdsays the delete asks first and lists what it clears.Before / after
Both runs use the same Playwright flow against the fixture relay, with fixture data only.
main)Error state, dark theme, narrow window, large text
Why
Every comparable action already asks first: Remove section in the channel sidebar asks even though it deletes nothing, and so do Delete team (#2820) and Delete agent. Delete workspace was the only one that didn't, and it's the one that destroys data. No issue or PR had reported it.
Approach
This reuses the pattern from #2820:
AlertDialogwithinitialFocuson Cancel, as DESIGN.md recommends.pendingguard, the error kept inside the dialog, and an explicitfinalFocus.The dialog opens on the next frame so the menu can restore focus first, as
chooseLifecyclein the same file already does.removeSectionitself is unchanged. The diff is one production file, its tests and one sentence in the help doc. Failures show one plain message, becauseremoveSection's errors are developer wording.For reviewers: because the dialog now covers the sidebar for the whole delete, two existing guards can no longer be reached:
deleting !== projectIdincanRenameand!!deletingon the menu item. I left them in to keep this diff small, and I'm happy to remove them here if you prefer.Testing
SoloWorkspaces.test.tsxhas 2 new and 2 updated tests. They cover the dialog's copy with and without chats, Cancel and Escape, retry inside the dialog after a failure, and the dialog staying open while the delete runs. All ofsrc/bundled/channels/andsrc/features/channel-navigation/passes, as do the Solo browser specs in Chromium (includingsolo-region-state, which checks the move refusal), andpnpm run checkis clean.258d209: 22 of 22 passed, including one run where the delete failed and showed the plain message in the dialog. The After screenshots are from that run.channel-templates/capability.ts.mainhits it too. With this change the dialog shows the plain message above instead, and retrying succeeds.Readiness
Back in draft: two agent design reviews (for Morgan Martin and tulsi) asked for copy changes: a plain error message, the real chat count, and saying agents aren't deleted. Those are user-visible, so per AGENTS.md the readiness marker is removed until the PR author re-tests them.
74e80afand258d209.maintwice, with no change to the delete flow. The second rebase also gave the dialog its own error state, because Show disabled plugin chats in Solo #3456 now uses the sidebar's error line for move refusals ("This chat is managed by …"), and that line is kept as it is onmain.🤖 Generated with Claude Code