Repository navigation
docs: address review comments from #8040 - #8043
Conversation
- Background naming renames the branch, not the worktree folder. - Project deletion keeps dirty worktrees after 30 days. - Platform-specific modifiers and the Windows/Linux open-in shortcut. - The Changes control shows the PR badge once a PR exists. - Add Oh My Pi to supported agents; clarify the Pages offer wording. - pages publish returns watchNote, not opening notes.
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review. 📝 WalkthroughWalkthroughThe documentation updates cover Oh My Pi, page publishing, interface controls, keyboard shortcuts, and workspace naming and deletion. ChangesDocumentation updates
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Other Merge Risk: ⚪ Minimal · up to The documentation changes introduce no established material workflow risk. The Changes control description generally matches the interface, although session workspaces do not offer Create PR. Architecture SummaryArchitecture risk: 🔵 Low · up to The change affects 1 system. Changed systems: Architecture concerns Review detailsSystems and components
Before / after behavior
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
| - **Create PR** - Open pull request on GitHub | ||
|
|
||
| The Changes control, with the diff stats and the commit, push, and PR actions, sits at the top of the right sidebar beside **Pages** and **Run**. It is hidden while the right sidebar is closed. | ||
| The Changes control sits at the top of the right sidebar beside **Pages** and **Run**, and opens or closes the Changes pane. Before the branch has a PR, it shows the diff stats and the commit, push, and create-PR actions. Once a PR exists, it shows the PR badge instead. It is hidden while the right sidebar is closed. |
There was a problem hiding this comment.
Changes control does not always toggle When a branch has no PR and its working tree is clean, the control can show a commit, push, or create-PR action instead of a diff-stats button. Clicking that action does not open or close the Changes pane. Readers following this description may expect the wrong result; please qualify that the diff-stats button or PR badge toggles the pane.
| The Changes control sits at the top of the right sidebar beside **Pages** and **Run**, and opens or closes the Changes pane. Before the branch has a PR, it shows the diff stats and the commit, push, and create-PR actions. Once a PR exists, it shows the PR badge instead. It is hidden while the right sidebar is closed. | |
| The Changes control sits at the top of the right sidebar beside **Pages** and **Run**. Before the branch has a PR, it can show diff stats and commit, push, or create-PR actions. Click the diff stats to open or close the Changes pane; when no stats are shown, the control may show a ship action instead. Once a PR exists, the PR badge opens or closes the Changes pane. The control is hidden while the right sidebar is closed. |
Prompt To Fix With AI
This is a comment left during a code review.
Path: apps/docs/content/docs/diff-viewer.mdx
Line: 20
Comment:
**Changes control does not always toggle** When a branch has no PR and its working tree is clean, the control can show a commit, push, or create-PR action instead of a diff-stats button. Clicking that action does not open or close the Changes pane. Readers following this description may expect the wrong result; please qualify that the diff-stats button or PR badge toggles the pane.
```suggestion
The Changes control sits at the top of the right sidebar beside **Pages** and **Run**. Before the branch has a PR, it can show diff stats and commit, push, or create-PR actions. Click the diff stats to open or close the Changes pane; when no stats are shown, the control may show a ship action instead. Once a PR exists, the PR badge opens or closes the Changes pane. The control is hidden while the right sidebar is closed.
```
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.There was a problem hiding this comment.
1 issue found across 7 files
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="apps/docs/content/docs/diff-viewer.mdx">
<violation number="1" location="apps/docs/content/docs/diff-viewer.mdx:20">
P2: This overstates the no-PR state: stats disappear when there are no changed files, and session workspaces do not get a Create PR action. Qualify both so the docs match the control.</violation>
</file>
Architecture diagram
sequenceDiagram
participant U as User
participant FE as Frontend (IDE)
participant BE as Backend Service
participant WS as Workspace Manager
participant FS as File System/Worktrees
participant Git as Git Operations
participant AG as AI Agent Runtime
participant SK as Pages Skill
participant PUB as Pages Publisher
Note over U,FE: Workspace Creation and Naming Flow
U->>FE: Create workspace (branch-based)
FE->>BE: NEW: Request new workspace
BE->>WS: Initialize workspace
WS->>Git: Create branch (derived name + short suffix)
WS->>FS: Create worktree folder (keeps creation name)
WS->>WS: Background naming job starts
WS->>AG: Analyze user prompt
AG-->>WS: Generate suggested name
WS->>Git: Rename branch (only if unpushed)
WS-->>BE: Workspace ready
BE-->>FE: Workspace details
Note over FE,AG: IDE Integration and Navigation
U->>FE: Open in editor (⌘O / Ctrl+Shift+O)
FE->>FE: Check right sidebar open
alt Right sidebar open
FE->>FS: Open workspace file view
else Right sidebar closed
FE->>FE: Use command palette (always works)
end
Note over U,BE: Changes Control State
U->>FE: View changes panel
FE->>BE: Fetch branch PR status
BE-->>FE: PR status
alt No PR exists for branch
FE->>FE: Show diff stats + commit/push/create-PR actions
else PR exists
FE->>FE: Show PR badge
end
Note over AG,PUB: Agent Publishing Flow
AG->>SK: Complete work worth publishing
SK->>AG: Offer to publish as Page
AG->>U: Ask permission to publish
U->>AG: Approve
AG->>PUB: Publish page
PUB->>PUB: Register session for comments
alt Registration successful
PUB->>PUB: Generate watchNote success message
else Registration failed
PUB-->>AG: Return watchNote with failure status
end
PUB-->>AG: Page metadata (id, title, version, url)
AG-->>U: Confirm page publication
Note over U,WS: Project Deletion and Cleanup
U->>FE: Delete project
FE->>BE: Confirm deletion
BE->>WS: Archive project workspaces
WS->>FS: Keep worktrees on disk
loop 30-day restore window
alt User restores project
U->>FE: Undo/restore from Recently deleted
FE->>WS: Restore project
WS->>FS: Reassociate worktrees
else Auto-cleanup after 30 days
WS->>FS: Remove clean worktrees only
FS-->>WS: Dirty worktrees kept
WS->>FS: Repository folder never removed
end
end
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
| - **Create PR** - Open pull request on GitHub | ||
|
|
||
| The Changes control, with the diff stats and the commit, push, and PR actions, sits at the top of the right sidebar beside **Pages** and **Run**. It is hidden while the right sidebar is closed. | ||
| The Changes control sits at the top of the right sidebar beside **Pages** and **Run**, and opens or closes the Changes pane. Before the branch has a PR, it shows the diff stats and the commit, push, and create-PR actions. Once a PR exists, it shows the PR badge instead. It is hidden while the right sidebar is closed. |
There was a problem hiding this comment.
P2: This overstates the no-PR state: stats disappear when there are no changed files, and session workspaces do not get a Create PR action. Qualify both so the docs match the control.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At apps/docs/content/docs/diff-viewer.mdx, line 20:
<comment>This overstates the no-PR state: stats disappear when there are no changed files, and session workspaces do not get a Create PR action. Qualify both so the docs match the control.</comment>
<file context>
@@ -17,7 +17,7 @@ Review changes, stage files, commit, and push, all from one interface.
- **Create PR** - Open pull request on GitHub
-The Changes control, with the diff stats and the commit, push, and PR actions, sits at the top of the right sidebar beside **Pages** and **Run**. It is hidden while the right sidebar is closed.
+The Changes control sits at the top of the right sidebar beside **Pages** and **Run**, and opens or closes the Changes pane. Before the branch has a PR, it shows the diff stats and the commit, push, and create-PR actions. Once a PR exists, it shows the PR badge instead. It is hidden while the right sidebar is closed.
## Diff Layouts
</file context>
| The Changes control sits at the top of the right sidebar beside **Pages** and **Run**, and opens or closes the Changes pane. Before the branch has a PR, it shows the diff stats and the commit, push, and create-PR actions. Once a PR exists, it shows the PR badge instead. It is hidden while the right sidebar is closed. | |
| The Changes control sits at the top of the right sidebar beside **Pages** and **Run**, and opens or closes the Changes pane. Before the branch has a PR, it shows diff stats when files have changed and the available commit or push actions; project workspaces can also create a PR. Once a PR exists, it shows the PR badge instead. It is hidden while the right sidebar is closed. |
🧹 Preview Cleanup CompleteThe following preview resources have been cleaned up:
Thank you for your contribution! 🎉 |
There was a problem hiding this comment.
All reported issues were addressed across 1 file (changes from recent commits).
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
What
Fixes the review comments left on #8040 after it merged. I checked each one against the source.
workspaces.mdx)workspace-naming-job.tsnever moves the worktree, so the folder keeps the name it was created with.workspaces.mdx)customization.mdx)editor.mdx.use-with-ide.mdx)hotkeys/registry.ts.pages.mdx)agent-integration.mdx)ompinbuiltin-terminal-agents.ts).cli/cli-reference.mdx)watchNote, not an opening note (publishResult.ts).diff-viewer.mdx)ChangesControl.tsx).TODO.mdTODO.mdis an append-only run log, and the hash is the pre-rebase commit the run reported at the time.Validation
bun run --cwd apps/docs typecheck: passbun run lint:fix, thenbun run lint: exit 0git diff --check: cleanSummary by cubic
Addresses the review comments on #8040 so the docs match actual behavior.
pages publishresult returnswatchNote, not opening notes.The bad commit hash in
TODO.mdwas left as-is because it's an append-only run log.Written for commit 57d6157. Summary will update on new commits.
Summary by CodeRabbit
republishcommand is provided and what comment-session status indicates.