Skip to content

feat(browser): spin up browser cells from the command center#3182

Open
MattPua wants to merge 2 commits into
posthog-code/browser-tabfrom
posthog-code/browser-command-center
Open

feat(browser): spin up browser cells from the command center#3182
MattPua wants to merge 2 commits into
posthog-code/browser-tabfrom
posthog-code/browser-command-center

Conversation

@MattPua

@MattPua MattPua commented Jul 6, 2026

Copy link
Copy Markdown
Member

Problem

Stacked on #3181. The command center can spin up tasks and terminals in grid cells, but not the new browser — you should be able to drop a browser next to a running task the same way.

Changes

CleanShot.2026-07-06.at.13.14.47.mp4
  • Browser option in the empty-cell picker, next to Terminal and Brainrot (same posthog-code-browser-tab flag)
  • Cells encode as __browser__:<url> (mirrors __terminal__:<id>) so the page restores on app reload
  • BrowserCell reuses BrowserPanel from feat(browser): in-app browser tab with webview security hardening #3181; header shows the page title, falling back to the url hostname
  • updateBrowserCellUrl is guarded so a stale debounced navigation callback can't clobber a cell that was reassigned

No new security surface: the webview and all main-process guards are the ones shipped in #3181.

How did you test this?

  • Grid helper round-trip tests (incl. urls containing the prefix delimiter, empty-string cells)
  • command-center + browser suites pass (125 tests), typecheck + biome clean

Automatic notifications

  • Publish to changelog?
  • Alert Sales and Marketing teams?

Created with PostHog Code

@github-actions

github-actions Bot commented Jul 6, 2026

Copy link
Copy Markdown

React Doctor found no issues in the changed files. 🎉

Reviewed by React Doctor for commit af47528.

@greptile-apps

greptile-apps Bot commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Reviews (1): Last reviewed commit: "feat(browser): spin up browser cells fro..." | Re-trigger Greptile

Comment thread packages/ui/src/features/command-center/components/TaskSelector.tsx
@MattPua MattPua force-pushed the posthog-code/browser-tab branch from b4db740 to 7ca9a4e Compare July 6, 2026 15:01
@MattPua MattPua force-pushed the posthog-code/browser-command-center branch 6 times, most recently from 9ff83d8 to eba66a5 Compare July 6, 2026 17:10
@MattPua MattPua force-pushed the posthog-code/browser-tab branch from 82f4907 to deae0e5 Compare July 6, 2026 17:10
MattPua added 2 commits July 6, 2026 16:35
- Browser option in the command center empty-cell picker, next to
  Terminal and Brainrot (same feature flag as the browser tab)
- Cells persist as __browser__:<url> and restore their page on reload
- Cell header shows page title, falling back to the url hostname
- Guarded url persist so stale navigation callbacks can't clobber a
  replaced cell

Generated-By: PostHog Code
Task-Id: 4bc7193a-bc2b-4365-8435-a6b20cd00c08
BrowserCell copied TerminalCell's frame verbatim (header icon + title +
remove button, body wrapper). Extract CellFrame so each cell keeps only
its distinctive parts.

Generated-By: PostHog Code
Task-Id: 29a0c450-6d5c-454e-a2c0-608d280d4737
@MattPua MattPua force-pushed the posthog-code/browser-command-center branch from dff59a3 to af47528 Compare July 6, 2026 20:35
@MattPua MattPua marked this pull request as ready for review July 6, 2026 20:36

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

This review was skipped because it would exceed your organization's monthly flex usage limit. Raise the limit in billing settings or wait until the next billing period resets limits.

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