You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 181fa6d
Browse filesBrowse the repository at this point in the historyBrowse files
test-companion: take the save destination from the approved plan's own file
A plain go on a generate plan still regenerated in a live run. The exact save
was gated on the pipeline binding's tm_project and tm_folder, but the bindings
the CLI reports carry no inputs, so the gate never opened. The tests used a
binding shape the CLI never prints.
Now a plain go on a generate plan that recorded its run always takes the
exact-save path. The destination comes from the plan's cases file (its
top-level `destination`), and `tc tm add --from-file` is called without
--project/--folder so it uses that same destination. A plan whose file has no
destination saves nothing, says why, and stays approvable. Whatever goes
wrong on that path is reported; it never falls back to generating again. A
go with edits, and a plan made before plans recorded their run, behave as
before.
Tests now use the bindings JSON exactly as the CLI prints it and a
real-shaped cases file with and without a destination, including the case
that failed live.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
/** The plan run's cases artifact from a `GET .../runs/<id>/artifacts` reply, or why there is none. */
@@ -103,6 +118,7 @@ const UNAVAILABLE_WHY = {
103
118
unreadable: "the plan's saved cases could not be read",
104
119
"other-repo": "the saved cases are not from this repository",
105
120
"other-commit": "the saved cases are for a different commit than this plan",
121
+
"no-destination": "the plan recorded no Test Management destination, so there is nowhere to save its cases",
106
122
"save-failed": "Test Management refused the cases before any were saved",
107
123
}
108
124
@@ -113,7 +129,9 @@ export function renderCasesUnavailable(reason, detail) {
113
129
return[
114
130
`I did not save anything: ${why}${extra ? ` (${extra})` : ""}.`,
115
131
"",
116
-
"I have not generated a new set in its place, because that would save cases nobody reviewed. Ask me to **generate** again and approve the fresh plan.",
132
+
reason==="no-destination"
133
+
? "I have not generated a new set in its place, because that would save cases nobody reviewed. Set `tm_project` and `tm_folder` for generate in the pipeline file, then ask me to **generate** again and approve the fresh plan."
134
+
: "I have not generated a new set in its place, because that would save cases nobody reviewed. Ask me to **generate** again and approve the fresh plan.",
0 commit comments