Skip to content

feat(desktop): enable inline workspace ports and agents row by default - #5483

Merged
Kitenite merged 1 commit into
mainfrom
enable-inline-agent-port
Jul 6, 2026
Merged

Kitenite merged 1 commit into
mainfrom
enable-inline-agent-port

Conversation

@Kitenite

@Kitenite Kitenite commented Jul 6, 2026 •

Copy link
Copy Markdown
Member

Summary

Flips both experimental sidebar flags on by default:

  • Inline workspace ports (inline-workspace-ports store) — ports render inline under each workspace item instead of the bottom panel.
  • Workspace agents row (workspace-agents-row store) — running agents render inline under each workspace item.

Both remain toggleable in Experimental Settings. Since the stores use zustand persist, users who never toggled pick up the new true default; anyone who explicitly set a value keeps their choice.

Test Plan

  • Fresh install / cleared localStorage: both experiments show as enabled and render inline in the sidebar.
  • Experimental Settings toggles still flip each flag off/on.
  • A user who previously toggled a flag off keeps that setting.

Open in Stage

Summary by cubic

Turn on inline workspace ports and the workspace agents row by default so ports and running agents show directly under each workspace in the sidebar. Both experiments remain toggleable in Experimental Settings; defaults only apply to users who never changed them, thanks to zustand persist.

Written for commit 9a37f1a. Summary will update on new commits.

Review in cubic

Summary by CodeRabbit

  • New Features
    • Enabled inline workspace ports by default for new sessions.
    • Enabled inline display of running workspace agents by default when no saved preference exists.

@cursor

cursor Bot commented Jul 6, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@ghost

ghost commented Jul 6, 2026

Copy link
Copy Markdown

Ready to review this PR? Stage has broken it down into 2 individual chapters for you:

Title
1 Enable inline workspace ports by default
2 Enable workspace agents row by default
Open in Stage

Chapters generated by Stage for commit 9a37f1a on Jul 6, 2026 9:10pm UTC.

@coderabbitai

coderabbitai Bot commented Jul 6, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: f5a26582-b022-4f42-a7ae-e9cf15b8ef26

📥 Commits

Reviewing files that changed from the base of the PR and between 5a42c71 and 9a37f1a.

📒 Files selected for processing (2)
  • apps/desktop/src/renderer/stores/inline-workspace-ports.ts
  • apps/desktop/src/renderer/stores/workspace-agents-row.ts

📝 Walkthrough

Walkthrough

Two experiment stores' default persisted enabled states are changed from false to true: inline-workspace-ports and workspace-agents-row. A documentation comment for workspace-agents-row is updated to reflect the new default.

Changes

Experiment Default Flips

Layer / File(s) Summary
Flip default enabled flags
apps/desktop/src/renderer/stores/inline-workspace-ports.ts, apps/desktop/src/renderer/stores/workspace-agents-row.ts
Both experiment stores' persisted initial enabled state changes from false to true; workspace-agents-row's header comment is updated from "Off by default" to "On by default".

Estimated code review effort: 1 (Trivial) | ~3 minutes

Possibly related PRs

  • superset-sh/superset#5414: Both PRs touch the running agents sidebar gating via the workspace-agents-row enabled flag/store defaults.
  • superset-sh/superset#5439: Both PRs affect the default enabled states that drive what the dashboard sidebar activity strip renders on first load.
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly states the main desktop change: enabling inline workspace ports and agents row by default.
Description check ✅ Passed The description covers the change summary and testing plan, though related issues, type of change, and additional notes are not filled in.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
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 docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch enable-inline-agent-port

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 Jul 6, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR enables two desktop sidebar experiments by default. The main changes are:

  • Inline workspace ports now default to enabled.
  • The workspace agents row now defaults to enabled.
  • The workspace agents row experiment comment now matches the new default.

Confidence Score: 5/5

This looks safe to merge.

  • No blocking issues found in the changed code.
  • Persisted user choices still override the new defaults.
  • Fresh or cleared storage gets the new enabled state.

Important Files Changed

Filename Overview
apps/desktop/src/renderer/stores/inline-workspace-ports.ts Changes the persisted inline workspace ports experiment default from disabled to enabled.
apps/desktop/src/renderer/stores/workspace-agents-row.ts Changes the persisted workspace agents row experiment default from disabled to enabled and updates the comment.

Reviews (1): Last reviewed commit: "feat(desktop): enable inline workspace p..." | Re-trigger Greptile

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

No issues found across 2 files

Architecture diagram
sequenceDiagram
    participant User
    participant SidebarUI as Sidebar UI
    participant SettingsUI as Experimental Settings
    participant Store as Zustand Store (persist)
    participant LS as localStorage

    Note over Store,LS: Applies to both inline-workspace-ports and workspace-agents-row

    User->>SidebarUI: App loads / workspace renders

    SidebarUI->>Store: Read enabled state(s)

    Store->>LS: getItem("inline-workspace-ports" / "workspace-agents-row")

    alt No persisted value (first visit / cleared)
        LS-->>Store: null
        Store->>Store: Use default true (NEW default)
    else Persisted value exists
        LS-->>Store: stored boolean
        Store->>Store: Use stored value (user preference)
    end

    Store-->>SidebarUI: enabled = true/false

    SidebarUI->>SidebarUI: Render ports / agents inline if enabled

    Note over SidebarUI: Ports and agents appear under each workspace item

    User->>SettingsUI: Toggle experiment flag

    SettingsUI->>Store: setEnabled(newValue)

    Store->>Store: Update internal state

    Store->>LS: setItem(...) via persist middleware

    Store-->>SettingsUI: State updated

    SettingsUI-->>User: UI reflects toggle

    SidebarUI->>Store: Re-read enabled (reactive via zustand)

    Store-->>SidebarUI: new value

    SidebarUI->>SidebarUI: Re-render inline content accordingly
Loading

Re-trigger cubic

@Kitenite
Kitenite merged commit e2fdbe6 into main Jul 6, 2026
10 checks passed
@Kitenite
Kitenite deleted the enable-inline-agent-port branch July 6, 2026 21:18
@github-actions

github-actions Bot commented Jul 6, 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! 🎉

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