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
spawnerPrompt: `**REQUIRED for CLI UI validation.** Verifies that React components actually render correctly in the terminal using tmux.
8
+
spawnerPrompt: `Expert at testing Codebuff CLI functionality using tmux.
9
9
10
-
**⚠️ IMPORTANT:** TypeScript typechecks do NOT catch OpenTUI rendering failures. Components can compile perfectly but crash or render blank at runtime due to OpenTUI's strict reconciliation rules (see cli/knowledge.md). This agent is the only way to verify UI changes work.
10
+
**What it does:** Spawns tmux sessions, sends input to the CLI, captures output, and validates behavior.
11
11
12
-
**You MUST spawn this agent after:**
13
-
- Creating or modifying files in \`cli/src/components/\`
14
-
- Changing layouts, flex patterns, or responsive behavior
15
-
- Adding new UI features (cards, grids, interactive elements)
- \`testResults\`: Array of {testName, passed, details, capturedOutput}
16
+
- \`scriptIssues\`: Array of {script, issue, errorOutput, suggestedFix} - **YOU should fix these!**
17
+
- \`captures\`: Array of {path, label} - file paths to terminal captures you can read
17
18
18
-
**Do NOT skip this step** just because typechecks and unit tests pass. Those verify code correctness, not rendering correctness.
19
+
**Paper trail:** Session logs are saved to \`debug/tmux-sessions/{session}/\`. Use \`read_files\` to view them.
19
20
20
-
**Crafting the right test prompt:** Think carefully about what CLI input will actually trigger the component you want to test. For example:
21
-
- To test \`ImplementorGroup\`: Use \`@editor-multi-prompt add a comment to some-file.ts\` (triggers multiple implementor agents)
22
-
- To test agent rendering: Send a prompt that spawns agents (e.g., \`find files related to X\`)
23
-
- To test error states: Intentionally trigger an error condition
24
-
The tmux tester will execute whatever prompt you specify, so be specific about what user input should trigger the UI you're verifying.
25
-
26
-
**After it runs:** Use \`read_files\` on the capture paths to see what the CLI displayed. If \`scriptIssues\` is not empty, fix the scripts in \`scripts/tmux/\`.`,
21
+
**Your responsibilities as the parent agent:**
22
+
1. If \`scriptIssues\` is not empty, fix the scripts in \`scripts/tmux/\` based on the suggested fixes
23
+
2. Use \`read_files\` on the capture paths to see what the CLI displayed
24
+
3. Re-run the test after fixing any script issues`,
27
25
28
26
inputSchema: {
29
27
prompt: {
30
28
type: 'string',
31
29
description:
32
-
'Description of what to test. Examples: "verify the new ImplementorGroup component renders cards in a grid", "test that the help command displays correctly", "check responsive layout at different terminal widths", "verify authentication flow works"',
30
+
'Description of what CLI functionality to test (e.g., "test that the help command displays correctly", "verify authentication flow works")',
0 commit comments