Skip to content

test(server): the text generation's fake Claude CLI is a fixture file, not a generated string - #15479

Merged
juliusmarminge merged 1 commit into
pingdotgg:mainfrom
TrogonStack:yordis/test-claude-text-generation-fixture
Oct 4, 2026
Merged

juliusmarminge merged 1 commit into
pingdotgg:mainfrom
TrogonStack:yordis/test-claude-text-generation-fixture

Conversation

@yordis

@yordis yordis commented Oct 4, 2026

Copy link
Copy Markdown
Contributor

…, not a generated string

Signed-off-by: Yordis Prieto <yordis.prieto@gmail.com>
@github-actions github-actions Bot added vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. size:M 30-99 changed lines (additions + deletions). labels Oct 4, 2026
@macroscopeapp

macroscopeapp Bot commented Oct 4, 2026

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Approved at 008132e

Macroscope's review found this PR approvable — This is a narrowly scoped test-harness refactor that moves the fake Claude CLI into a fixture while preserving its test-only execution and behavior. It does not alter product runtime behavior, defaults, schemas, deployment, or static-analysis configuration.

You can add or adjust custom eligibility rules. Learn more.

@coderabbitai

coderabbitai Bot commented Oct 4, 2026

Copy link
Copy Markdown

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

🧰 Additional context used
📚 Code guidelines (1)
docs/internals/effect-services.md — auto-discovered

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository: pingdotgg/t3code/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: bacc2748-c628-46a7-9195-592b7c02f251
📥 Commits

Reviewing files that changed from the base of the PR and between 845ddd9 and 008132e.

📒 Files selected for processing (2)
  • apps/server/src/textGeneration/ClaudeTextGeneration.test.ts
  • apps/server/src/textGeneration/testing/ClaudeTextGeneration.fixture.mjs

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 5 remain after this review.


📝 Walkthrough

Walkthrough

The Claude text-generation test now reads its fake CLI implementation from a separate fixture file. The fixture checks CLI settings and optional environment inputs, then writes configured output and sets the exit code.

Changes

Claude CLI test fixture

Layer / File(s) Summary
Load and execute the fake CLI fixture
apps/server/src/textGeneration/ClaudeTextGeneration.test.ts, apps/server/src/textGeneration/testing/ClaudeTextGeneration.fixture.mjs
The test helper reads the fixture source and passes it to writeFakeCli. The fixture validates CLI settings and optional argument, stdin, and configuration-directory expectations. It writes configured stderr and stdout content and sets the configured exit code.

Priority: ⬇️ Low

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Other

Suggested reviewers: juliusmarminge

Merge Risk: ⚪ Minimal · up to 00813

The extracted fake CLI fixture is available to the server test; no issue requiring a change before merge was identified.

🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (2 warnings)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description explains why the generated CLI is problematic and references similar changes, but it omits the required Change, Scope and approval, and Verification details. Add the Problem, Change, Scope and approval, and Verification sections. Describe the expected behavior and how this change addresses the problem. Link the approved issue or discussion, or explain why this focused change does not need prior …
Docstring Coverage ⚠️ Warning Docstring coverage is 50.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 2 functions across 2 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly describes the main change: moving the fake Claude CLI from a generated string to a fixture file.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Full details: Description check

Resolution

Add the Problem, Change, Scope and approval, and Verification sections. Describe the expected behavior and how this change addresses the problem. Link the approved issue or discussion, or explain why this focused change does not need prior approval. Report the focused tests run, their results, and anything not checked.

  • Fix all pre-merge checks with AI
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

@juliusmarminge
juliusmarminge merged commit ee7b49d into pingdotgg:main Oct 4, 2026
29 checks passed
ohbentos pushed a commit to ohbentos/t3code that referenced this pull request Oct 4, 2026
…, not a generated string (pingdotgg#15479)

Signed-off-by: Yordis Prieto <yordis.prieto@gmail.com>
github-actions Bot added a commit to omarcresp/t3code-flake that referenced this pull request Oct 4, 2026
## What's Changed
* fix(server): registry test stubs no longer outlive the test run by @yordis in pingdotgg/t3code#15457
* test(server): the registry's fake Claude CLI is a fixture file, not a generated string by @yordis in pingdotgg/t3code#15463
* refactor(clients): share opening a machine's No project folder by @bmdavis419 in pingdotgg/t3code#14759
* test(server): the git-ssh wrapper's fake SSH script is a fixture file, not a generated string by @yordis in pingdotgg/t3code#15480
* test(server): the ACP registry's fake npm is a fixture file, not a generated string by @yordis in pingdotgg/t3code#15483
* test(server): the ACP registry's fake uv is a fixture file, not a generated string by @yordis in pingdotgg/t3code#15484
* feat(clients): step a new thread to the next machine from the keyboard by @juliusmarminge in pingdotgg/t3code#15391
* fix(web): promoting a draft thread no longer logs a React key warning by @yordis in pingdotgg/t3code#15458
* test(server): the text generation's fake Claude CLI is a fixture file, not a generated string by @yordis in pingdotgg/t3code#15479
* fix(mobile): keep dictation running across navigation behind an edge pill by @juliusmarminge in pingdotgg/t3code#15502
* fix(client-runtime): relay disconnects no longer show as thread errors by @juliusmarminge in pingdotgg/t3code#15470
* fix(web): subagent cards name the provider account by @SunkenInTime in pingdotgg/t3code#15493
* fix(server): read paginated review replies when watching PRs by @eimexdev in pingdotgg/t3code#15427
* fix(server): offer one-click provider updates for every install by @maria-rcks in pingdotgg/t3code#15416
* fix(mobile): keep the dictation timer from shifting width by @juliusmarminge in pingdotgg/t3code#15504
* fix(relay): T3 Connect links no longer fail on colliding prepared statements by @juliusmarminge in pingdotgg/t3code#15411
* fix(server): sqlite transactions wait for the write lock instead of failing by @juliusmarminge in pingdotgg/t3code#15488
* fix(web): unpin button shows the pin-off icon on hover by @flamboh in pingdotgg/t3code#15425
* fix(mobile): make queued message removal tappable by @PixPMusic in pingdotgg/t3code#15417
* fix(web): keep workspace panels below dialogs by @maria-rcks in pingdotgg/t3code#15454
* fix(clients): Working section keeps its order while agents finish and wake by @t3dotgg in pingdotgg/t3code#15418
* feat(mobile): full-screen simulator viewer with on-demand controls by @juliusmarminge in pingdotgg/t3code#15551
* fix(client-runtime): closing a busy stream no longer drops the connection by @t3dotgg in pingdotgg/t3code#15563
* feat(web): add shift-held pull request quick actions by @maria-rcks in pingdotgg/t3code#15549
* fix: expanded tool calls show their output, empty ones don't expand by @maria-rcks in pingdotgg/t3code#15505


**Full Changelog**: pingdotgg/t3code@v0.0.46-nightly.20261004.2644...v0.0.46-nightly.20261004.2648

Upstream release: https://github.com/pingdotgg/t3code/releases/tag/v0.0.46-nightly.20261004.2648
github-actions Bot added a commit to davidvanderklay/t3code-flake that referenced this pull request Oct 4, 2026
## What's Changed
* fix(server): registry test stubs no longer outlive the test run by @yordis in pingdotgg/t3code#15457
* test(server): the registry's fake Claude CLI is a fixture file, not a generated string by @yordis in pingdotgg/t3code#15463
* refactor(clients): share opening a machine's No project folder by @bmdavis419 in pingdotgg/t3code#14759
* test(server): the git-ssh wrapper's fake SSH script is a fixture file, not a generated string by @yordis in pingdotgg/t3code#15480
* test(server): the ACP registry's fake npm is a fixture file, not a generated string by @yordis in pingdotgg/t3code#15483
* test(server): the ACP registry's fake uv is a fixture file, not a generated string by @yordis in pingdotgg/t3code#15484
* feat(clients): step a new thread to the next machine from the keyboard by @juliusmarminge in pingdotgg/t3code#15391
* fix(web): promoting a draft thread no longer logs a React key warning by @yordis in pingdotgg/t3code#15458
* test(server): the text generation's fake Claude CLI is a fixture file, not a generated string by @yordis in pingdotgg/t3code#15479
* fix(mobile): keep dictation running across navigation behind an edge pill by @juliusmarminge in pingdotgg/t3code#15502
* fix(client-runtime): relay disconnects no longer show as thread errors by @juliusmarminge in pingdotgg/t3code#15470
* fix(web): subagent cards name the provider account by @SunkenInTime in pingdotgg/t3code#15493
* fix(server): read paginated review replies when watching PRs by @eimexdev in pingdotgg/t3code#15427
* fix(server): offer one-click provider updates for every install by @maria-rcks in pingdotgg/t3code#15416
* fix(mobile): keep the dictation timer from shifting width by @juliusmarminge in pingdotgg/t3code#15504
* fix(relay): T3 Connect links no longer fail on colliding prepared statements by @juliusmarminge in pingdotgg/t3code#15411
* fix(server): sqlite transactions wait for the write lock instead of failing by @juliusmarminge in pingdotgg/t3code#15488
* fix(web): unpin button shows the pin-off icon on hover by @flamboh in pingdotgg/t3code#15425
* fix(mobile): make queued message removal tappable by @PixPMusic in pingdotgg/t3code#15417
* fix(web): keep workspace panels below dialogs by @maria-rcks in pingdotgg/t3code#15454
* fix(clients): Working section keeps its order while agents finish and wake by @t3dotgg in pingdotgg/t3code#15418
* feat(mobile): full-screen simulator viewer with on-demand controls by @juliusmarminge in pingdotgg/t3code#15551
* fix(client-runtime): closing a busy stream no longer drops the connection by @t3dotgg in pingdotgg/t3code#15563
* feat(web): add shift-held pull request quick actions by @maria-rcks in pingdotgg/t3code#15549
* fix: expanded tool calls show their output, empty ones don't expand by @maria-rcks in pingdotgg/t3code#15505


**Full Changelog**: pingdotgg/t3code@v0.0.46-nightly.20261004.2644...v0.0.46-nightly.20261004.2648

Upstream release: https://github.com/pingdotgg/t3code/releases/tag/v0.0.46-nightly.20261004.2648
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:M 30-99 changed lines (additions + deletions). vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants