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
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.
macroscopeapp
Bot
commented
Nov 3, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
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.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
coderabbitai
Bot
commented
Nov 3, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|

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: 4
-
| Check name |
Status |
Explanation |
| Title check |
 |
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 |
 |
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 |
 |
Check skipped because no linked issues were found for this pull request. |
| Out of Scope Changes check |
 |
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)
-
- 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
-
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.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
coderabbitai
Bot
left a comment
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
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.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Nov 3, 2026
maria-rcks
commented
Nov 3, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
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


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.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Nov 3, 2026
…-other-home
# Conflicts:
# apps/server/src/cli/service.ts
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
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.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
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.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Reviewers
+1 more reviewer
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.
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.
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.
|