GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(cli): t3 service restart no longer says another home's service is not installed by saphid · Pull Request #29848 · pingdotgg/t3code

Conversation

@saphid

@saphid saphid commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

Problem

The background service unit is per user, but each unit serves one T3 home. When t3 service restart runs with a different home than the one the service was installed for (another --base-dir, or a different T3CODE_HOME), BootService.restart correctly skips the restart. The command then prints "T3 Code service is not installed." That's wrong: a service is installed, it just belongs to another home.

The message also points the user the wrong way. Someone told "not installed" will usually run t3 service install next, and on current main that rewrites the per-user unit onto the wrong home (the empty-home problem in #23858).

Change

When restart returns "skipped" and the status read just before it says a unit is installed, t3 service restart now prints the message t3 up already uses for the same outcome: "The installed service runs another T3 home, so it was not restarted. Pass its --base-dir." It still prints "not installed" when no unit exists. The exit code is unchanged, the same as the t3 up sibling.

Scope and approval

Very small, focused fix for an obvious bug, so no prior issue: one command printed a false state for an outcome its sibling (t3 up) already reports correctly. The fix changes 3 lines in service.ts and adds one table test.

Overlap search: the local PR index plus REST searches for "service restart", "runs another T3 home", and "service is not installed". The closest match is open #23878, which handles another home's service in t3 service status and t3 service install. It doesn't touch t3 service restart (I checked its service.ts patch). #14361, #25924, #28565, and #25237 change how restart works, not this message.

Verification

  • Red on main: vp test run src/cli/service.test.ts → restart explains why it skipped another home's service: Expected: "runs another T3 home", Received: "T3 Code service is not installed."
  • Green: vp test run src/cli/service.test.ts → 10 passed (10), rerun after rebasing onto the latest main.
  • CI=true vp run check:changed: format, lint, knip, typecheck, and tests all pass.
  • Not checked: a real systemd or launchd unit installed for a second home. The test stubs BootService the same way the existing service command tests do.

Reviewed with sol-loop: 1 round with GPT-6.1 Sol on high. Sol verdict: approved.

Created with Claude Opus 5.5 in Claude Code (T3 Code).

🤖 Generated with Claude Code

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@saphid @claude @github-actions
fix(cli): t3 service restart no longer says another home's service is…
df4b27c
… not installed

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions github-actions Bot added vouch:trusted Author is trusted by repo permissions or the VOUCHED list. size:XS 0-9 changed lines (additions + deletions). labels Nov 3, 2026
macroscopeapp[bot]
macroscopeapp Bot previously approved these changes Nov 3, 2026
View reviewed changes
@macroscopeapp

macroscopeapp Bot commented Nov 3, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Approved at 6add279

Macroscope's review found this PR approvable — The CLI now explains when an installed service's T3 home cannot be determined instead of saying no service is installed. Only the diagnostic text changes; restart behavior and service protections remain unchanged.

You can add or adjust custom eligibility rules. Learn more.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@coderabbitai

coderabbitai Bot commented Nov 3, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The service restart command now distinguishes an installed service with an unknown T3 home from a service that is not installed. Tests check the reported messages for these cases and for a service associated with another T3 home.

Changes: Restart messaging

Layer / File(s) Summary
Handle skipped restart outcomes
apps/server/src/cli/service.ts, apps/server/src/cli/service.test.ts
The command reports a distinct message when an installed service has an unknown T3 home. The not-installed message remains for a service that is not installed. Tests cover these cases and a service associated with another T3 home.

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

Change: Bug fix

Possibly related issues

  • Issue 23858 describes the foreign---base-dir restart condition. This change updates the restart message for that condition; the issue’s separate service install and service status problems are not addressed.

Suggested reviewers: rookmate, juliusmarminge

Merge Risk: Minimal · up to 6add2

The restart message now distinguishes an unknown installed home from no installed service. No actionable merge-blocking risk is established; normal checks remain appropriate.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the fix and its scope: the t3 service restart command no longer reports that another home's service is not installed. The raw summary and objectives confirm that the service.ts change …
Description check Passed The description follows the template sections: Problem, Change, Scope and approval, and Verification. The Problem section gives the expected and actual behavior. The Change section explains the new "s…
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.
Full details: Title check

Explanation

The title names the fix and its scope: the t3 service restart command no longer reports that another home's service is not installed. The raw summary and objectives confirm that the service.ts change and the test change both target this message when restart is skipped for an installed unit that belongs to another home. The title is specific and matches the main change, so it passes.

Full details: Description check

Explanation

The description follows the template sections: Problem, Change, Scope and approval, and Verification. The Problem section gives the expected and actual behavior. The Change section explains the new "skipped" branch and the message, and it says that the exit code is unchanged. The Scope and approval section explains why no prior issue exists, which the template allows for a very small, focused fix of an obvious bug. It also lists overlap searches. The Verification section gives a red-then-green test run, a check run, and what was not checked. The template's optional agent-attribution line is present. The description is complete and specific, so it passes.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Tip

🎯 Customize your risk assessments

Guide how CodeRabbit assesses merge risk and security architecture risk. Highlight sensitive changes and explain your security boundaries using Merge Risk Instructions and Security Risk Instructions in your review settings. Security architecture risk assessments require the Advanced plan or above.

✅ Automatic approvals, with your rules

Let CodeRabbit approve pull requests once required threads are resolved, pre-merge checks pass, and your risk limits are met. Enable Automatic approvals in review settings, with overrides for teams or file paths.

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: pingdotgg/t3code
  • Branch: main
  • File: .coderabbit.config.ts
  • Commit: 33f8584
  • Layers: Repository TS config
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 6c6a4bca-7278-4e00-a19a-613b9418ead4
Commits

Reviewing files that changed from the base of the PR and between a9c8ec8 and 6add279.

Files selected for processing: 2

  • apps/server/src/cli/service.test.ts
  • apps/server/src/cli/service.ts

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

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

coderabbitai[bot]
coderabbitai Bot reviewed Nov 3, 2026
View reviewed changes

@coderabbitai coderabbitai Bot left a comment •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Fix comments: Fix CodeRabbit comments on this PR

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread apps/server/src/cli/service.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

This was referenced Nov 3, 2026
fix(server): t3 service uninstall leaves another T3 home's service alone #29872
Merged
fix(cli): t3 update no longer says a service awaiting restart runs the new version #29901
Merged
@maria-rcks
fix(cli): identify an unknown installed service home
a9c8ec8
@maria-rcks

maria-rcks commented Nov 3, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Collaborator

Note

Written by gpt-6.1-sol on behalf of Maria

Verified in a real dev environment

reproduced on github/main 61c3794c32 in a separate installed worktree. installed a real Linux systemd user service through t3 service install --base-dir /home/user/service-home. restarting from another home printed "T3 Code service is not installed." while the unit remained active.

on the original pr head, both --base-dir and T3CODE_HOME correctly reported another home. the unit hash, pid, and start timestamp stayed unchanged. a neighboring case exposed the existing review finding: a unit without readable T3CODE_HOME incorrectly recommended passing --base-dir. fixed in a9c8ec835f, with a failing-then-passing row in the existing test table.

re-verified the repaired cli against the real unit:

  • foreign home: correct message, exit 0, no service restart or unit rewrite.
  • unknown installed home: identifies the unreadable home and unit path, exit 0, no restart.
  • correct home: restart succeeds; systemd pid changes from 21223 to 30451.
  • no installed unit: still reports "not installed", exit 0.

started one dev server at a time, using isolated data. used repo Playwright with system Chrome to add a real git project and create threads through the web client. real Codex gpt-6.1-sol turns completed on main and the repaired head. on the repaired head, the provider ran the actual restart cli, read README.md, and returned the expected output. reloading the client retained the conversation.

vp run check:changed e0f69e9ea4cb550cb8a395ccc8096d387783b577 passed through blacksmith: formatting, lint, knip, graphql, affected typechecks, and 12 tests. new-head GitHub CI was pending when this evidence was recorded.

command transcript

real Codex turn returns the foreign-home restart message

real web client and Codex execute the restart command

Not verified

macOS launchd, Windows, native desktop and iOS/Android clients, relay/tunnel connections, and a restart queued from inside the installed service were not exercised on this Linux VM. the installed service runtime is the released [email protected]; the restart commands and dev web/server came from the checked-out source. other providers were not exercised because this change is in the provider-independent cli message.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This was referenced Nov 3, 2026
fix(cli): t3 up's retry and restart hints keep --base-dir #30480
Merged
fix(cli): t3 connect and t3 service hints keep --base-dir #31906
Merged
@github-actions
Merge remote-tracking branch 'upstream/main' into fix/service-restart…
6add279
…-other-home

# Conflicts:
#	apps/server/src/cli/service.ts
@macroscopeapp
macroscopeapp Bot dismissed their stale review November 7, 2026 05:18

Dismissing prior approval to re-evaluate 6add279

macroscopeapp[bot]
macroscopeapp Bot approved these changes Nov 7, 2026
View reviewed changes
Wladefant

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@t3dotgg
t3dotgg dismissed Wladefant’s stale review November 8, 2026 23:28

Dismissed: unsolicited automated review from a blocked account.

@juliusmarminge juliusmarminge added the takeover:in-progress A takeover lead is working on this PR label Nov 14, 2026
@juliusmarminge

juliusmarminge commented Nov 14, 2026

Copy link
Copy Markdown
Member

The automated pipeline stopped on this pull request and will not merge it:

someone else pushed to fix/service-restart-other-home (head is now 6add279); the pipeline does not build on commits it did not review

It stays open for a person to finish or close.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@juliusmarminge juliusmarminge added takeover:blocked Takeover blocked; reason in the PR body takeover:in-progress A takeover lead is working on this PR and removed takeover:in-progress A takeover lead is working on this PR takeover:blocked Takeover blocked; reason in the PR body labels Nov 14, 2026
@juliusmarminge juliusmarminge added takeover:in-progress A takeover lead is working on this PR takeover:blocked Takeover blocked; reason in the PR body and removed takeover:blocked Takeover blocked; reason in the PR body takeover:in-progress A takeover lead is working on this PR labels Nov 24, 2026
@shivamhwp shivamhwp mentioned this pull request Nov 28, 2026
fix(cli): t3 service restart no longer calls an installed service not installed #45014
Merged
@juliusmarminge

juliusmarminge commented Nov 28, 2026

Copy link
Copy Markdown
Member

Thanks for this. Main has the change since #45014.

Compared the full two-file diff with main: restart already explains when the service belongs to another T3 home, and this merge adds the remaining installed-but-unknown-home message with the unit file path while preserving the no-service message. Main now covers all three skipped-restart outcomes addressed by this PR.

Closing as superseded.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@juliusmarminge juliusmarminge closed this Nov 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@coderabbitai coderabbitai[bot] coderabbitai[bot] left review comments
@macroscopeapp macroscopeapp[bot] macroscopeapp[bot] approved these changes
+1 more reviewer
@Wladefant Wladefant Wladefant approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

size:XS 0-9 changed lines (additions + deletions). takeover:blocked Takeover blocked; reason in the PR body vouch:trusted Author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@saphid @maria-rcks @juliusmarminge @Wladefant
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.