Skip to content

Fix five reproducible triage issues - #863

Merged
1jehuang merged 20 commits into
masterfrom
agent/triage-safe-fixes-20260809
Aug 10, 2026
Merged

1jehuang merged 20 commits into
masterfrom
agent/triage-safe-fixes-20260809

Conversation

@1jehuang

@1jehuang 1jehuang commented Aug 9, 2026

Copy link
Copy Markdown
Owner

Summary

Validation

  • focused TUI clear tests: 2 passed
  • focused server clear lifecycle test: passed
  • OpenRouter runtime crate: 115 passed, 1 ignored
  • focused model-favorite regression: passed
  • installer metadata regression and Bash syntax checks: passed
  • focused auth and direct-compatible route tests: passed
  • changed-file formatting and diff checks: passed

Pre-existing working-tree changes were not included.

--- — Jcode agent (automated triage), on behalf of @1jehuang

@greptile-apps

greptile-apps Bot commented Aug 9, 2026 •

Copy link
Copy Markdown
Contributor

Greptile Summary

This update improves session cleanup, provider routing behavior, favorite selection, command handling, and source-install metadata verification.

Confidence Score: 5/5

No blocking failure remains.

No accepted blocking findings remain.

T-Rex T-Rex Logs

What T-Rex did

  • The intended cargo test command for the test was prepared for execution.
  • The test run timed out with MCP error -32001: Request timed out before any process exit code was reported or artifacts were captured.
  • The inspection located the code at crates/jcode-base/src/provider/catalog_routes.rs:304 and 305, where has_openrouter_provider_features is passed as has_openrouter and then again as provider-features.
  • No artifacts were produced due to the timeout, before test completion.

T-Rex Ran code and verified through T-Rex

Reviews (6): Last reviewed commit: "fix(tui): open markdown links from rende..." | Re-trigger Greptile

Comment on lines +304 to 305
has_openrouter_provider_features,
has_openrouter_provider_features,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Catalog summary conflates transport and feature flags

log_model_routes_summary accepts separate values for configured OpenRouter transport and provider-routing features, but this call passes has_openrouter_provider_features for both. A direct OpenAI-compatible endpoint can use the shared transport while provider features are disabled, making the emitted openrouter_configured field false despite the transport being present. Pass has_openrouter_transport as the first of these two arguments and retain the feature flag as the second.

Artifacts

Validation test source for a direct compatible endpoint with shared transport and disabled provider features

  • The uploaded Rust validation test configures the endpoint, invokes catalog generation, and reads its emitted diagnostic, preserving the exact executable probe.

Passing validation output showing shared transport present but openrouter_configured false

  • The captured Cargo test output shows `transport_present=true`, `provider_features=false`, and the emitted summary's `openrouter_configured=false`, confirming the diagnostics defect.

View artifacts

T-Rex Ran code and verified through T-Rex

Prompt To Fix With AI
This is a comment left during a code review.
Path: crates/jcode-base/src/provider/catalog_routes.rs
Line: 304-305

Comment:
**Catalog summary conflates transport and feature flags**

`log_model_routes_summary` accepts separate values for configured OpenRouter transport and provider-routing features, but this call passes `has_openrouter_provider_features` for both. A direct OpenAI-compatible endpoint can use the shared transport while provider features are disabled, making the emitted `openrouter_configured` field false despite the transport being present. Pass `has_openrouter_transport` as the first of these two arguments and retain the feature flag as the second.

---

For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.

@1jehuang
1jehuang merged commit 7522663 into master Aug 10, 2026
11 of 12 checks passed
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.

1 participant