Skip to content

fix(#4528): pass timeoutMs to detectCcVersion in discoverCcAgents#4547

Merged
aegis-gh-agent[bot] merged 1 commit into
developfrom
fix/4528-cc-version-timeout
Jun 1, 2026
Merged

fix(#4528): pass timeoutMs to detectCcVersion in discoverCcAgents#4547
aegis-gh-agent[bot] merged 1 commit into
developfrom
fix/4528-cc-version-timeout

Conversation

@OneStepAt4time
Copy link
Copy Markdown
Owner

Closes #4528

Summary

The discoverCcAgents function was not passing its options.timeoutMs to the detectCcVersion call, causing version detection to always use the hardcoded 5000ms default instead of the caller-configured timeout.

Changes

  • Add optional timeoutMs parameter to detectCcVersion
  • Pass options.timeoutMs through to detectCcVersion in discoverCcAgents
  • Add overload to isCcAgentsJsonSupported to accept pre-detected version string
  • Use isCcAgentsJsonSupported in discoverCcAgents to avoid double-parsing semver

Verification

  • tsc ✅
  • tests pass

- Add optional timeoutMs parameter to detectCcVersion
- Pass options.timeoutMs through to detectCcVersion in discoverCcAgents
- Add overload to isCcAgentsJsonSupported to accept pre-detected version string
- Use isCcAgentsJsonSupported in discoverCcAgents to avoid double-parsing semver

Closes #4528
Copy link
Copy Markdown
Contributor

@aegis-gh-agent aegis-gh-agent Bot left a comment

Choose a reason for hiding this comment

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

LGTM. Clean fix — timeoutMs properly threaded through, overload avoids double-parse, CI green. 👁️

@aegis-gh-agent aegis-gh-agent Bot merged commit f9cfee5 into develop Jun 1, 2026
18 checks passed
@aegis-gh-agent aegis-gh-agent Bot deleted the fix/4528-cc-version-timeout branch June 1, 2026 03:07
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