fix(cli): t3 triage reports the server's version, not its own, as the user's build (#19359)
Co-authored-by: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
0ae1091d01
commit
ffceb61fcb
7 files changed
+168
-35
No files matched your search
@@ -37,7 +37,7 @@ body:
|
||||
id: version
|
||||
attributes:
|
||||
label: Version
|
||||
description: Installed t3 version or commit.
|
||||
description: Version the bug happened on (not the `t3 triage` CLI version), or unknown.
|
||||
placeholder: 0.0.33
|
||||
validations:
|
||||
required: true
|
||||
|
||||
@@ -6,7 +6,7 @@ crashes, auth failures, broken setups, slow launches, or anything else. Your job
|
||||
find out what went wrong, unblock the user if you can, and turn what you learned into
|
||||
a well written GitHub issue when one is warranted.
|
||||
|
||||
A triage context file with machine facts (version, OS, paths, server liveness) was
|
||||
A triage context file with machine facts (versions, OS, paths, server liveness) was
|
||||
provided alongside this playbook. Everything machine-specific lives there, not here.
|
||||
|
||||
## 1. Ask what went wrong
|
||||
@@ -18,9 +18,15 @@ valuable thing you can extract from this conversation.
|
||||
|
||||
## 2. Read the machine facts
|
||||
|
||||
Read the triage context file before investigating. It tells you the installed
|
||||
version, the OS, whether the server process is currently running, and the exact
|
||||
paths for state, logs, and the database.
|
||||
Read the triage context file before investigating. It tells you the OS, whether
|
||||
the server process is currently running, and the exact paths for state, logs, and
|
||||
the database.
|
||||
|
||||
Its triage CLI version (called "Installed version" in older context files) is only
|
||||
the version of the `t3` that ran `t3 triage`. It is often not the build the bug
|
||||
happened on: `npx t3 triage` runs whatever `t3` npm resolves, while the user may
|
||||
run the desktop app, the background service, or a nightly. The server process line
|
||||
gives the local server's version when the server recorded one.
|
||||
|
||||
## 3. Check for a newer playbook
|
||||
|
||||
@@ -30,8 +36,16 @@ instead of this one. The user may be on an old release with an old copy.
|
||||
|
||||
## 4. Get the source
|
||||
|
||||
Clone the repo at the tag matching the user's installed version, into the source
|
||||
cache directory named in the context file, one subdirectory per commit hash:
|
||||
Before cloning, ask the user which version, device, and surface the bug happened
|
||||
on. The bug may have happened on another machine, a remote server, the mobile app,
|
||||
or an older build they have since updated. Check their answer against local facts
|
||||
where they apply: the server version in the context file, or `serverVersion` from
|
||||
`<origin>/.well-known/t3/environment` when a local server is running. If neither
|
||||
the user nor the machine can tell you the version, say it is unknown. Do not guess.
|
||||
|
||||
Clone the repo at the release tag for that version (`v` followed by the version,
|
||||
such as `v0.0.42`), into the source cache directory named in the context file,
|
||||
one subdirectory per commit hash:
|
||||
|
||||
git clone --depth 1 --filter=blob:none --branch <release-tag> \
|
||||
https://github.com/pingdotgg/t3code <source-cache-dir>/<hash>
|
||||
@@ -82,8 +96,8 @@ comes from this repo's `main` branch.
|
||||
|
||||
Search existing issues in pingdotgg/t3code (use `gh`, or the public GitHub search
|
||||
API if `gh` is missing or not logged in). Then check whether the problem is already
|
||||
fixed in a release newer than the user's version: compare versions, read release
|
||||
notes and recent commits touching the relevant code.
|
||||
fixed in a release newer than the version the bug happened on: compare versions,
|
||||
read release notes and recent commits touching the relevant code.
|
||||
|
||||
If the user is behind and the fix likely shipped, say so plainly and give them the
|
||||
exact update command for how they run the CLI (the context file records how it was
|
||||
@@ -105,6 +119,8 @@ of `main` for that work, never the tag-pinned diagnosis clone.
|
||||
- Match the structure of the `via-triage` issue template
|
||||
(`.github/ISSUE_TEMPLATE/via-triage.yml` in the repo): what happened, diagnosis,
|
||||
repro steps, environment, evidence, related issues.
|
||||
- Under Version, give the version the bug happened on from step 4, or say it is
|
||||
unknown. Name the triage CLI version only as the CLI's.
|
||||
- Label it `via-triage`. Use a plain, specific title with no prefix.
|
||||
- Show the user the complete final issue text and get an explicit yes before
|
||||
posting. Never post without it.
|
||||
|
||||
Reference in new issue
Block a user