Skip to content

fix(ida): retain selected endpoint on connection failures - #7894

Merged
morluto merged 2 commits into
mainfrom
codex/ida-endpoint-errors
Oct 28, 2026
Merged

morluto merged 2 commits into
mainfrom
codex/ida-endpoint-errors

Conversation

@morluto

@morluto morluto commented Oct 28, 2026 •

Copy link
Copy Markdown
Owner

Summary

IDA connection failures now retain the selected HTTP endpoint in their diagnostics. Fixes #7568.

Problem and expected behavior

A connection failure could name the provider without identifying which registration failed. Callers need the validated selected endpoint, while credentials and explicitly sensitive transport values must stay redacted.

Change and scope

The IDA session failure owner adds the selected HTTP endpoint to transport, timeout, cancellation and protocol failures using the existing diagnostic redactor. Artifact and stdio failures do not acquire an invented endpoint. Existing typed failure and cleanup ownership remain intact.

Contract and boundary impact

  • Semantic owner and earliest changed stage: IDA session failure projection.
  • Contribution scope and maintainer decision: existing read-only provider; no new authority or scope decision.
  • CLI and MCP: additive endpoint diagnostics for admitted HTTP registrations.
  • Provider compatibility: no change to IDA connection or GUI database behavior.
  • Evidence and provenance: preserve selected spelling while redacting marked transport credentials.
  • Target selection, authority and cleanup: unchanged; typed failures keep their cleanup owners.
  • Generated metadata/package impact: none.
  • Contact network services.

Evidence and regression coverage

  • Tests cover plain transport failures, timeout, cancellation, protocol/limit errors, credential redaction and artifact/stdio controls.
  • Public CLI and stdio MCP exercise a real loopback HTTP 404 and stopped listener; no IDA database is opened.
  • Remaining proof gaps: no real IDA engine or Windows host was used.

Validation performed

  • npm run test:focused -- src/ida/IdaSessionClient.test.ts tests/acceptance/providers/idaEndpointFailure.test.ts — 87 passed.
  • npm run check:fast — passed.
  • git diff --check — passed.

Review follow-up: URL diagnostics redact percent-encoded and query-form representations of known credentials while retaining unrelated caller spelling. Startup timeout and resource failures keep their original producer cause and live cleanup ownership.

  • npm run test:focused -- tests/acceptance/providers/idaEndpointFailure.test.ts src/ida/IdaStartupFailures.test.ts src/ida/IdaDiagnosticRedactor.test.ts — 68 passed, including real loopback CLI/MCP and startup cleanup retry.
  • npm run test:local -- src/ida/IdaDiagnosticRedactor.test.ts src/ida/IdaSessionClient.test.ts src/ida/IdaStartupFailures.test.ts — 155 passed.
  • npm run check:fast and git diff --check — passed.

Compatibility, safety, and release

  • Breaking changes or migration: none expected; diagnostics are additive.
  • Real provider/platform coverage: loopback HTTP on macOS, not a real IDA engine or Windows.
  • Package impact: none.
  • Security/privacy: existing diagnostic redaction applies to the endpoint and transport credentials.

Author readiness

Human owner: @morluto

  • I reviewed the final diff and relevant existing code, understand the change and its edge cases, and take responsibility for the complete PR, including AI-assisted work.
  • I checked the evidence above, confirmed it supports the current change, and recorded meaningful validation gaps.
  • I declare this PR ready for initial maintainer review.

Before merge

  • This PR addresses a concrete problem or an agreed enhancement.
  • Material scope and authority questions are resolved, and any required maintainer scope decision covers the final diff.
  • The PR has one focused outcome and the title follows type(scope): outcome.
  • Related issue is linked, or the reason for not linking one is stated above.
  • Tests cover changed observable behavior and meaningful failure paths.
  • Owning docs, contracts, and generated metadata are updated where needed.
  • User-visible CLI/MCP changes include representative output.
  • I checked the final diff for secrets, unrelated cleanup, and unsupported claims.

@greptile-apps

greptile-apps Bot commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; both previous findings are addressed and no new actionable issues were found.

Summary

IDA HTTP connection failures now retain the selected endpoint while hiding known transport credentials.

  • IDA HTTP connection errors show the selected endpoint.

Reviews (2) · Last reviewed commit: "fix(ida): redact encoded endpoint creden..." · Reviewed by Greptile

Comment thread src/ida/IdaSessionClient.ts Resolved
Comment thread src/ida/IdaSessionClient.ts Resolved
@morluto
morluto marked this pull request as ready for review October 28, 2026 20:56
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-28T20:57:53.906770Z 8125e69 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@morluto
morluto merged commit 5f146b3 into main Oct 28, 2026
43 of 46 checks passed
@morluto
morluto deleted the codex/ida-endpoint-errors branch October 28, 2026 21:07
@morluto morluto added bug Something isn't working provider: ida Analysis provider / engine: ida labels Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working provider: ida Analysis provider / engine: ida

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] IDA connection errors discard the configured service URL

1 participant