Skip to content

docs: address review comments from #8040 - #8043

Merged
Kitenite merged 3 commits into
mainfrom
docs/review-fixes-8040
Oct 1, 2026
Merged

Kitenite merged 3 commits into
mainfrom
docs/review-fixes-8040

Conversation

@Kitenite

@Kitenite Kitenite commented Oct 1, 2026 •

Copy link
Copy Markdown
Member

What

Fixes the review comments left on #8040 after it merged. I checked each one against the source.

Comment Fix
Greptile: folder rename misdocumented (workspaces.mdx) Background naming renames the branch only. workspace-naming-job.ts never moves the worktree, so the folder keeps the name it was created with.
cubic: worktree bullets contradict (workspaces.mdx) Worktrees stay on disk while the project can be restored. After 30 days, clean worktrees are removed; worktrees with uncommitted changes and the repository folder stay.
cubic: Cmd-only modifiers (customization.mdx) Changed to Cmd/Ctrl-click and Cmd/Ctrl+Shift-click, matching editor.mdx.
cubic: ⌘O is macOS-only (use-with-ide.mdx) Added Ctrl+Shift+O for Windows and Linux, from hotkeys/registry.ts.
cubic: unclear offer wording (pages.mdx) The agent now does the offering.
cubic: Oh My Pi missing from the agent list (agent-integration.mdx) Added Oh My Pi (omp in builtin-terminal-agents.ts).
cubic: stale "opening notes" (cli/cli-reference.mdx) The publish result has a watchNote, not an opening note (publishResult.ts).
cubic: Changes control states (diff-viewer.mdx) Before a PR exists, it shows diff stats and the commit, push, and create-PR actions; once a PR exists, it shows the PR badge (ChangesControl.tsx).
cubic: bad commit hash in TODO.md Not changed. TODO.md is 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: pass
  • bun run lint:fix, then bun run lint: exit 0
  • Vale on the 7 changed files: 0 errors, 0 warnings
  • git diff --check: clean

Summary by cubic

Addresses the review comments on #8040 so the docs match actual behavior.

  • Background naming renames the branch only; worktree folders keep the name they were created with.
  • Deleting a project removes clean worktrees after 30 days, but dirty worktrees and the repository folder stay.
  • Added Cmd/Ctrl and Cmd/Ctrl+Shift-click modifiers, plus Ctrl+Shift+O for Windows and Linux.
  • The Changes control shows diff stats when files change, with the commit, push, and create-PR actions in a chevron menu; once a PR exists it shows the PR badge. Only the diff stats and badge toggle the pane.
  • Added Oh My Pi to the supported agents and clarified that the agent offers to publish pages.
  • The pages publish result returns watchNote, not opening notes.

The bad commit hash in TODO.md was left as-is because it's an append-only run log.

Written for commit 57d6157. Summary will update on new commits.

Review in cubic

Summary by CodeRabbit

  • Documentation
    • Added Oh My Pi to the supported-agent list.
    • Clarified publish results, including when a republish command is provided and what comment-session status indicates.
    • Updated file-selection and open-in shortcut guidance for Mac, Windows, and Linux.
    • Explained how the Changes control behaves before and after a PR exists, including when it opens the Changes pane and when it is hidden.
    • Clarified how the Pages publishing prompt works, how generated branch names differ from folder names, and what happens to worktrees when a project is deleted.

- 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.
@coderabbitai

coderabbitai Bot commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

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 configuration

Configuration used: defaults

Review profile: CHILL

Plan: Advanced

Run ID: 6fb58f73-49e4-4fc1-9aca-4cc4f3ca26f1

📥 Commits

Reviewing files that changed from the base of the PR and between 6304936 and 57d6157.

📒 Files selected for processing (1)
  • apps/docs/content/docs/diff-viewer.mdx
🚧 Files skipped from review as they are similar to previous changes (1)
  • apps/docs/content/docs/diff-viewer.mdx

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review.


📝 Walkthrough

Walkthrough

The documentation updates cover Oh My Pi, page publishing, interface controls, keyboard shortcuts, and workspace naming and deletion.

Changes

Documentation updates

Layer / File(s) Summary
Agent integration and page publishing
apps/docs/content/docs/agent-integration.mdx, apps/docs/content/docs/pages.mdx, apps/docs/content/docs/cli/cli-reference.mdx
Adds Oh My Pi to the supported-agent list, attributes the Pages offer to the Superset plugin, and revises the CLI publish return-value description.
Interface control guidance
apps/docs/content/docs/customization.mdx, apps/docs/content/docs/diff-viewer.mdx, apps/docs/content/docs/use-with-ide.mdx
Updates file-row click instructions, describes the Changes pane states, and adds Windows and Linux open-in shortcut guidance.
Workspace naming and deletion
apps/docs/content/docs/workspaces.mdx
Clarifies that the worktree folder keeps its creation name and updates the described retention of worktrees and repository folders after project deletion.

Priority: ⬇️ Low

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Other

Merge Risk: ⚪ Minimal · up to 57d61

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 Summary

Architecture risk: 🔵 Low · up to 63049

The change affects 1 system.

Changed systems: apps/docs

Architecture concerns
No architecture-level concerns identified.

Review details

Systems and components

  • observed — apps/docs (service) was modified; 7 changed files map to changed impact.

Before / after behavior

  • observed — Modified behavior in apps/docs/content/docs/agent-integration.mdx: Added Oh My Pi to the supported agents list, with a description of its terminal-first, session-aware workflows.
  • observed — Modified behavior in apps/docs/content/docs/cli/cli-reference.mdx: The return description replaces the conditional watch/opening-notes wording with a watchNote field indicating whether comment-session registration worked.
  • observed — Modified behavior in apps/docs/content/docs/customization.mdx: The listed file-row actions now include Ctrl-click and Ctrl+Shift-click alongside the Cmd variants, replacing the Mac-only Cmd-click and Cmd+Shift-click wording.
  • observed — Modified behavior in apps/docs/content/docs/pages.mdx: The documentation changes the offer-and-wait behavior from being attributed to the Pages skill to being attributed to the Superset plugin.
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title uses conventional commit format and clearly identifies the documentation updates as responses to review comments on issue #8040.
Description check ✅ Passed The description explains the purpose and specific documentation changes, identifies the related review comments, and includes validation results. It does not use the exact template headings and omits …
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Autopilot is currently an internal CodeRabbit preview.


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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@greptile-apps

greptile-apps Bot commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 4/5

[Low risk] Documentation updates addressing review feedback.

The PR appears safe to merge; the Changes-control wording has a non-blocking documentation inaccuracy.

Findings

  1. P2 Changes control does not always toggle ▶
Fix with agent prompt
### Issue 1
apps/docs/content/docs/diff-viewer.mdx:20
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.

Summary

The PR corrects documentation for workspace naming and deletion, editor shortcuts, agent and Pages behavior, CLI publish output, and the Changes control. The Changes-control description needs one qualification for clean branches without a PR.

Reviews (1) · Last reviewed commit: "docs: address review comments from #8040"

Comment thread apps/docs/content/docs/diff-viewer.mdx Outdated
- **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.

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.

P2 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.

Suggested change
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.

@cubic-dev-ai cubic-dev-ai 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.

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
Loading

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

Comment thread apps/docs/content/docs/diff-viewer.mdx Outdated
- **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.

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.

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>
Suggested change
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.

Comment thread apps/docs/content/docs/diff-viewer.mdx Resolved
@github-actions

github-actions Bot commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

🧹 Preview Cleanup Complete

The following preview resources have been cleaned up:

  • ✅ Neon database branch

Thank you for your contribution! 🎉

@cubic-dev-ai cubic-dev-ai 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.

All reported issues were addressed across 1 file (changes from recent commits).

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

Comment thread apps/docs/content/docs/diff-viewer.mdx Resolved
@Kitenite
Kitenite merged commit 7dc507a into main Oct 1, 2026
20 checks passed
@Kitenite
Kitenite deleted the docs/review-fixes-8040 branch October 1, 2026 19:09

This branch was previously deployed

1 inactive deployment
preview — 57d61572 Deployed Oct 1, 2026 by Kitenite via Deploy Docs #10748
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