Skip to content

Commit 2661b4d

Browse files
t3dotggclaude
andcommitted
fix(cli): t3 triage also lists rotated desktop backend logs
The desktop app rotates server-child logs at 10 MB, so a recent failure can sit in server-child.log.1 with no current file. Widen the glob to server-child*.log* and tighten the context wording. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
1 parent a27a77b commit 2661b4d

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

‎apps/server/src/cli/triage.ts‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -202,11 +202,11 @@ export const triageCommand = Command.make("triage", {
202202
dbPath: paths.dbPath,
203203
settingsPath: paths.settingsPath,
204204
logsDir: paths.logsDir,
205-
// The server writes no plain log file. The boot service and the
206-
// desktop app capture its output here, with one desktop file per
207-
// backend (such as WSL); see bootService.ts and DesktopObservability.ts.
205+
// The server writes no log file of its own. Service installs and the
206+
// desktop app capture its output. The glob covers every desktop backend
207+
// (such as WSL) and rotated copies; names come from DesktopObservability.ts.
208208
serviceLogPath: path.join(paths.logsDir, BootService.BOOT_SERVICE_LOG_FILE),
209-
desktopBackendLogGlob: path.join(paths.logsDir, "server-child*.log"),
209+
desktopBackendLogGlob: path.join(paths.logsDir, "server-child*.log*"),
210210
serverTracePath: paths.serverTracePath,
211211
providerEventLogPath: paths.providerEventLogPath,
212212
terminalLogsDir: paths.terminalLogsDir,

‎apps/server/src/cli/triagePrompt.test.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ it("context file carries every path the playbook depends on", () => {
5353
settingsPath: "/home/u/.t3/userdata/settings.json",
5454
logsDir: "/home/u/.t3/userdata/logs",
5555
serviceLogPath: "/home/u/.t3/userdata/logs/boot-service.log",
56-
desktopBackendLogGlob: "/home/u/.t3/userdata/logs/server-child*.log",
56+
desktopBackendLogGlob: "/home/u/.t3/userdata/logs/server-child*.log*",
5757
serverTracePath: "/home/u/.t3/userdata/logs/server.trace.ndjson",
5858
providerEventLogPath: "/home/u/.t3/userdata/logs/provider/events.log",
5959
terminalLogsDir: "/home/u/.t3/userdata/logs/terminals",
@@ -65,7 +65,7 @@ it("context file carries every path the playbook depends on", () => {
6565
assert.include(context, "/home/u/.t3/userdata/state.sqlite");
6666
assert.include(context, "/home/u/.t3/userdata/logs/server.trace.ndjson");
6767
assert.include(context, "/home/u/.t3/userdata/logs/boot-service.log");
68-
assert.include(context, "/home/u/.t3/userdata/logs/server-child*.log");
68+
assert.include(context, "/home/u/.t3/userdata/logs/server-child*.log*");
6969
assert.include(context, "/home/u/.t3/userdata/logs/provider/events.log");
7070
assert.include(context, "/home/u/.t3/userdata/secrets");
7171
assert.include(context, "/home/u/.t3/source");

‎apps/server/src/cli/triagePrompt.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ Generated by \`t3 triage\` at ${input.generatedAt}.
208208
- Settings: ${input.paths.settingsPath}
209209
- Logs dir: ${input.paths.logsDir}
210210
- Service log (systemd/launchd service installs only): ${input.paths.serviceLogPath}
211-
- Desktop backend logs (glob; one file per backend, such as a WSL backend; written only when it crashes or fails to start): ${input.paths.desktopBackendLogGlob}
211+
- Desktop backend logs (glob; one file per backend plus rotated copies; written only when a backend crashes or fails to start): ${input.paths.desktopBackendLogGlob}
212212
- Server trace (ndjson): ${input.paths.serverTracePath}
213213
- Provider event log: ${input.paths.providerEventLogPath}
214214
- Terminal logs: ${input.paths.terminalLogsDir}

0 commit comments

Comments
 (0)