History

feat(connect): keep macOS hosts reachable after reboot

Theo Browne committed 3 months ago

Commit ec3c5f61 parent 90f391312 files · +690 −91Browse files

Showing the changes to apps/server/src/cli (3 of 12 files). Show all

Unified · Split

3 files
  1. apps/server/src/cli/connect.ts +1 −1
  2. apps/server/src/cli/service.test.ts +3 −3
  3. apps/server/src/cli/service.ts +3 −4
apps/server/src/cli/connect.ts+1−1
@@ -695,7 +695,7 @@ export const connectCommand = Command.make("connect", { · 694 unmodified lines
695695 const background = yield* recoverServiceOnboardingOffer(offerServiceDuringOnboarding);
696696 if (background) {
697697 yield* Console.log(
698− "\n✓ Background service ready\n\nT3 Code will stay reachable after you log out.",
698+ "\n✓ Background service ready\n\nT3 Code will start automatically and stay reachable in the background.",
699699 );
700700 return;
701701 }
apps/server/src/cli/service.test.ts+3−3
@@ -16,7 +16,7 @@ it("reports the installed service version and host paths", () => { · 15 unmodified lines
1616 [
1717 "T3 Code service",
1818 " Status: installed · t3@0.0.29",
19− " Unit: /home/me/.config/systemd/user/t3code.service",
19+ " Definition: /home/me/.config/systemd/user/t3code.service",
2020 " Logs: /home/me/.t3/userdata/logs/boot-service.log",
2121 ].join("\n"),
2222 );
@@ -29,9 +29,9 @@ it("gives a direct repair command for a stale service", () => { · 6 unmodified lines
2929 );
3030 });
3131
32−it("explains service availability without systemd", () => {
32+it("explains service availability on unsupported platforms", () => {
3333 assert.include(
3434 formatServiceStatus({ ...status, supported: false, installed: false }, "0.0.29"),
35− "Supported on: Linux with systemd",
35+ "Supported on: macOS with launchd or Linux with systemd",
3636 );
3737 });
apps/server/src/cli/service.ts+3−4
@@ -48,7 +48,7 @@ export function formatServiceStatus( · 47 unmodified lines
4848 cliVersion: string,
4949 ): string {
5050 if (!status.supported) {
51− return "T3 Code service\n Status: unavailable on this machine\n Supported on: Linux with systemd";
51+ return "T3 Code service\n Status: unavailable on this machine\n Supported on: macOS with launchd or Linux with systemd";
5252 }
5353 if (!status.installed) {
5454 return "T3 Code service\n Status: not installed\n Next: Run `t3 service install`.";
@@ -56,7 +56,7 @@ export function formatServiceStatus( · 1 unmodified line
5656 return [
5757 "T3 Code service",
5858 ` Status: ${status.current ? `installed · t3@${cliVersion}` : "needs an update or repair"}`,
59− ` Unit: ${status.unitPath}`,
59+ ` Definition: ${status.unitPath}`,
6060 ` Logs: ${status.logPath}`,
6161 ...(status.current ? [] : [" Next: Run `npx t3@latest service update`."]),
6262 ].join("\n");
@@ -156,8 +156,7 @@ export const offerServiceDuringOnboarding = Effect.gen(function* () { · 93 unmodified lines
156156 Prompt.confirm({
157157 message: installed
158158 ? "The installed T3 Code service needs an update or repair. Update it now?"
159− : "Run T3 Code in the background whenever this machine boots? " +
160− "It stays reachable through T3 Connect even after you log out.",
159+ : "Start T3 Code automatically and keep this machine reachable in the background?",
161160 initial: true,
162161 }),
163162 );

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t