Skip to content

fix(review): the review dry run shows the request the model client would send, built by that client - #2291

Merged
dan-petty merged 1 commit into
mainfrom
implement_issue_fourteen_thirty
Oct 26, 2026
Merged

dan-petty merged 1 commit into
mainfrom
implement_issue_fourteen_thirty

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

Summary

  • Use an in-memory httpx2.MockTransport in _llm_request_preview so review dry runs capture the exact request built by the model client.
  • Support transport and http_client injection in LLMClient and get_llm_client factory.
  • Report missing configuration when Ollama URLs are unset, preventing localhost fallback.
  • Prevent subprocess token lookup via gh during dry-run in src/devops_cli/core/process.py.
  • Preserve XDG_RUNTIME_DIR and DBUS_SESSION_BUS_ADDRESS in DEFAULT_ALLOWED_ENV_VARS for session bus isolation.

Closes #1430

Change: openspec/changes/archive/2026-10-26-1430-review-dry-run-request-preview/

…uld send, built by that client

Use an in-memory transport to record the model request from the client directly so dry-run previews match real calls across providers without opening sockets.

Report missing configuration when Ollama URLs are not set, prevent child processes from calling gh during dry run, and keep session bus environment variables.

Closes #1430

Change: openspec/changes/archive/2026-10-26-1430-review-dry-run-request-preview/
@dan-petty
dan-petty marked this pull request as ready for review October 26, 2026 14:15
@dan-petty
dan-petty merged commit 9383fd5 into main Oct 26, 2026
17 checks passed
@dan-petty
dan-petty deleted the implement_issue_fourteen_thirty branch October 26, 2026 14:15
dan-petty pushed a commit that referenced this pull request Oct 26, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.6.3](v0.6.2...v0.6.3)
(2026-10-26)


### Bug Fixes

* **github:** devops gh rate-limit reads only the free /rate_limit
endpoint ([#2300](#2300))
([706e386](706e386)),
closes [#1441](#1441)
* **github:** the label taxonomy metrics count every open issue across
all pages and no pull requests
([#2298](#2298))
([f5cd022](f5cd022))
* **infra:** cloudflare access sync reads every page of applications and
policies and retries rate-limited requests
([#2296](#2296))
([a86aa4b](a86aa4b))
* **review:** the review dry run shows the request the model client
would send, built by that client
([#2291](#2291))
([9383fd5](9383fd5))
* **security:** devops scan sbom is produced by trivy's cyclonedx and
spdx writers
([#2301](#2301))
([d5e47ff](d5e47ff))
* **terraform:** drift reads state through tofu show -json, so encrypted
state and module resources are no longer misreported
([#2297](#2297))
([169859a](169859a))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(review): the review dry run shows the request the model client would send, built by that client

1 participant