Skip to content

feat(labservant): redesign side panel UX and add source checkout launch parity - #47501

Closed
JEMostert wants to merge 19 commits into
pingdotgg:mainfrom
JEMostert:feat/labservant-panel-ux
Closed

JEMostert wants to merge 19 commits into
pingdotgg:mainfrom
JEMostert:feat/labservant-panel-ux

Conversation

@JEMostert

@JEMostert JEMostert commented Dec 2, 2026 •

Copy link
Copy Markdown

unintended pr

JEMostert and others added 19 commits December 1, 2026 03:52
* feat(web): add a built-in LabServant theme

Adds LabServant as a sixth built-in theme with light and dark variants,
built from the LabServant brand teal scale. Red is kept to errors.
Mobile picks it up from the shared built-in list.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(web): deepen the LabServant dark code background so comments read better

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(web): LabServant dark destructive buttons keep a readable white label

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
Contracts, the settings toggle, the server foundation (store, job runner,
exec seam, core, sync, monitor, facade, RPC wiring), stub services with
their final interfaces, the MCP tool definitions, and the web state module
and Labs rows that the parallel LabServant tasks build on.

Co-authored-by: Claude Opus 5.5 <[email protected]>
Ports LS Manager's maintenance service (non-Git parts) into
LabServantMaintenance: migrate, clear config and dump autoload routines;
tests with filter and test-file rules; the built-in task list; artisan
with exact command names and the data-discarding list; composer project
scripts only; the signed login link; Telescope and Debugbar toggles; and
.env drift and sync.

Co-authored-by: Claude Opus 5.5 <[email protected]>
Port LS Manager's health.ts, herd.ts and logs.ts as LabServantHealth and
LabServantLogs. Health reports pending migrations, migrations from other
commits (leaving out the client copy's own), errors in the last hour, Vite,
missing .env keys, anonymisation, Telescope/Debugbar and database sizes.
Herd diagnostics read PHP-FPM, services and the site, and say Herd isn't
available on machines without it. Logs list, parse, page, filter errors and
clear files under storage/logs and application/logs only, never through
symlinks, and follow a forward cursor that restarts from the tail when the
file shrinks or is replaced.

Co-authored-by: Claude Opus 5.5 <[email protected]>
Agents and people drive LabServant from a shell until sessions receive the
labservant MCP server. `t3 labservant` signs in as a short-lived full-access
MCP client of the running server at /mcp/labservant (revoked on exit) and calls
the labservant tools, with LS Manager's commands, output text and --json/--wait.
Destructive commands are refused by the server for CLI sessions (A1); the CLI
shows that refusal with guidance to the LabServant page.

Co-authored-by: Claude Opus 5.5 <[email protected]>
A second MCP server with its own tool list, behind T3's MCP credentials and
auth. Thread callers reach only the environment (or source) their project's
folder is; outside clients need full access and no link; everything refuses
while LabServant is off. Destructive tools ask the person through T3's
approval path, only for a thread with a live MCP session that keeps the
request server-side, and keep the nonce when a sessionless client calls back.

Co-authored-by: Claude Opus 5.5 <[email protected]>
* feat(labservant): right-panel tab and environment sections

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(labservant): keep a failed job visible and cap notes at the server limit

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* perf(labservant): ChatView reads only the derived LabServant target

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
Port LS Manager's git.ts, the git actions from maintenance.ts and
commit-tests.ts into LabServantGit, LabServantGitActions and
LabServantCommitTests.

Co-authored-by: Claude Opus 5.5 <[email protected]>
…ications (#10)

* feat(labservant): the LabServant page, its dialogs, palette and notifications

The LabServant page at /labservant mirrors Workflows: a server picker limited
to servers with LabServant on, an Environments and Jobs list, and the picked
environment or source checkout beside it with T9's sections under a tab bar.
Jobs show their steps; a step's output streams only while it is expanded.

Create, remove (type the name, keep or archive the project) and import from
LS Manager (newest state file, counts, inferred folders, dry run, then import)
run from the page. Preferences edit the per-server LabServant settings. The
palette offers Open LabServant, New environment, Update source and, in an
environment thread, Show panel, Back to master, Run migrations, Open site and
Open login link. Finished jobs toast, or notify on the desktop when allowed,
and run the page's follow-ups (add or archive the project).

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(labservant): the panel's Remove offers Keep or Archive project

T9's Remove… opened its own name dialog without the project choice. It now
renders the page's LabServantRemoveDialog, which carries T9's uncommitted and
unpushed warning. The two type-the-name dialogs are one shared
LabServantConfirmNameDialog, used by Remove, Reset test database and Change
client, and it accepts the exact name with surrounding spaces trimmed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
Port LS Manager's environments, inventory, MySQL client and database copy
into LabServant: create in resumable parallel steps, resume, remove, reset
tests, switch client with rollback, stable database, startup repairs on
validated records only, and the isolated test database sweep. The Herd
step degrades on machines without Herd.

Co-authored-by: Claude Opus 5.5 <[email protected]>
…ion (#12)

* feat(web): add a built-in LabServant theme (#1)

* feat(web): add a built-in LabServant theme

Adds LabServant as a sixth built-in theme with light and dark variants,
built from the LabServant brand teal scale. Red is kept to errors.
Mobile picks it up from the shared built-in list.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(web): deepen the LabServant dark code background so comments read better

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(web): LabServant dark destructive buttons keep a readable white label

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>

* feat(labservant): precise refusals, Herd details, log identity and follow-ups

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(labservant): translate LabServant into every web locale

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* docs(labservant): user guide for LabServant

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(labservant): import before folders are set, dev stack scans, readable output

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(labservant): a long refusal detail can't fail construction

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(labservant): drain jobs on disable, reserve names, repair imports, log races, typed import path

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(labservant): fence dev starts while off, guard clear and import lookup races, browser tests

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(labservant): finish the old folders' stack sweep when a folder change interrupts turning off

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* test(labservant): wait for the interrupted sweep explicitly

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
feat: LabServant, LS Manager built into T3 Code
…dev processes (#14)

`t3 labservant logs` and the MCP logs tool returned the oldest entries in the
window because logs.read lists newest first. They now return the newest
entries, newest last.

Remove now stops vite, artisan and npm processes started outside LabServant
(Herd's devtools, a terminal) in the checkout before deleting it, deletes the
ownership marker last so a failed delete can be retried, and reports the real
delete error instead of "moved or redirected".

Co-authored-by: Claude Opus 5.5 <[email protected]>
…g in buttons (#15)

* feat(labservant): LabServant opens in the side panel instead of a full page

The LabServant page replaced the chat. Its environments, jobs, preferences
and New environment now live in the LabServant side-panel tab, which opens
on the chat's own checkout and shows list and details side by side when
the panel is wide. Open LabServant and job notifications open the tab.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(labservant): open a site or login page in the preferred browser

A browser preference (system default, Chrome, Safari, Firefox, Arc, Edge
or Brave) and an openInBrowser action that opens an environment's site or
a signed login page on the server's Mac. The CLI open command and the
open_on_host agent tool take site and login. User-facing guidance now
points at the LabServant panel.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(labservant): add browser launch buttons and preference

* fix(labservant): keep panel navigation in its chat

* fix(labservant): open browsers installed for the server user

* feat(web): launch LabServant sites from the environment list (#16)

* feat(web): launch LabServant sites from the environment list

* fix(web): scope LabServant row hover to selection

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
@JEMostert JEMostert closed this Dec 2, 2026
@macroscopeapp

macroscopeapp Bot commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

Macroscope skipped reviewing this pull request. Per-review cost limit exceeded (workspace setting).

This review would cost an estimated $42.42, which exceeds your per-review limit of $15.00.

The top 3 files driving up this estimate:

File Diff Size Estimate
apps/server/src/labservant/LabServantEnvironments.ts 58.70KB $2.33
apps/server/src/labservant/cli/labservantCommand.ts 54.27KB $2.15
apps/server/src/labservant/LabServant.ts 40.56KB $1.61

Tip

To get this pull request reviewed, you can:

  1. Comment @macroscope-app on this PR to request a manual review (monthly spend limits still apply).
  2. Exclude the file(s) above from review by adding a pattern to your .macroscope/ignore.md — note that creating this file replaces Macroscope's built-in default ignores rather than extending them.
  3. Raise your cost limit in your workspace billing settings.

Turn off this reminder going forward

@github-actions github-actions Bot added vouch:unvouched Author is not yet trusted in the VOUCHED list. size:XXL 1,000+ changed lines (additions + deletions). labels Dec 2, 2026
@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

This PR changes the test suite by +244 test cases (browser +17, unit +36, server +191).

New browser test files: apps/web/src/components/labservant/LabServantBrowser.browser.test.tsx, apps/web/src/components/labservant/LabServantImportCard.browser.test.tsx, apps/web/src/components/labservant/LabServantRemoveDialog.browser.test.tsx, apps/web/src/components/labservant/LabServantSettingsRows.browser.test.tsx, apps/web/src/components/labservant/environment/LabServantLogsSection.browser.test.tsx.
Each browser test file costs CI seconds of module loading before its first test runs; a unit test costs milliseconds.

Keep tests that would fail for a real reason, and test logic below the UI where it can be. See Testing.

@macroscopeapp

macroscopeapp Bot commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Needs Human Approval

Macroscope's review found this PR requires human approval — This adds LabServant environment management, CLI integration, and a side-panel interface. New lint-suppression directives, including LabServantDialogs.tsx:283, require human review.

Needs human approval because:

  • Per-review cost limit exceeded (workspace setting). Approvability relies on correctness review in order to determine eligibility

Review your spending limits in Billing settings, or comment @macroscope-app review this PR to bypass the limit and review now. You can add or adjust custom eligibility rules. Learn more.

@JEMostert
JEMostert deleted the feat/labservant-panel-ux branch December 2, 2026 16:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XXL 1,000+ changed lines (additions + deletions). vouch:unvouched Author is not yet trusted in the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant