Skip to content

Commit fb86c82

Browse files
cliffhallclaude
andcommitted
fix: nest isError inside the result; make the single-test command path-agnostic
Copilot round 2 on #4921. - client-smoke: the tool-error row showed isError beside the result envelope; it is a field of the result. - testing: the "One Python test" row hardcoded tests/test_server.py, which is not where time keeps its tests. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Signed-off-by: cliffhall <[email protected]>
1 parent bfd28f3 commit fb86c82

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎.claude/skills/client-smoke/SKILL.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ The exit code is the verdict, so check it rather than reading the text:
108108
| Outcome | stdout | stderr | Exit |
109109
| --- | --- | --- | --- |
110110
| The request succeeded | `{"result": …}` | | 0 |
111-
| The tool ran and returned `isError: true` | `{"result": …, "isError": true}` | `{"error":{"code":"tool_is_error", …}}` | 5 |
111+
| The tool ran and returned `isError: true` | `{"result":{"content": …, "isError": true}}` | `{"error":{"code":"tool_is_error", …}}` | 5 |
112112
| No such tool | | `{"error":{"code":"tool_not_found", …}}` | 5 |
113113
| Could not connect, or bad arguments | | `{"error":{"code":"error", …}}` | 1 |
114114

‎.claude/skills/testing/SKILL.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ than adding a dependency for one test.
203203
| Every TypeScript server | `npm test` at the root |
204204
| One TypeScript server's whole chain | `npm run validate -w src/<server>` (format check, lint, typecheck, build, test) |
205205
| One Python server | `uv run pytest` in `src/<server>` |
206-
| One Python test | `uv run pytest tests/test_server.py::<name>` |
206+
| One Python test | `uv run pytest <path to the test file>::<name>` in `src/<server>` (for example `tests/test_server.py::test_git_checkout_existing_branch`, or `test/time_server_test.py::…` in `time`) |
207207
| One Python server's whole chain | `npm run validate:py -- <server>` |
208208
| Root tooling | `npm run test:scripts` |
209209

0 commit comments

Comments
 (0)