Skip to content

feat(test): add timeout support for agents test command#13

Open
ivanleomk wants to merge 5 commits into
mainfrom
feat/add-timeout-support
Open

feat(test): add timeout support for agents test command#13
ivanleomk wants to merge 5 commits into
mainfrom
feat/add-timeout-support

Conversation

@ivanleomk
Copy link
Copy Markdown
Contributor

Adds support for a new timeout parameter (either via CLI flag --timeout or in the agent's YAML config) to override the x-server-timeout header when executing local tests.

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces a timeout configuration and CLI option for agent testing, allowing users to override the default server timeout. The timeout is parsed, validated, and forwarded as an x-server-timeout header in API stream requests and curl outputs. Feedback suggests tightening the Zod schema validation for timeout to ensure it is a positive integer, and implementing stricter CLI argument validation to prevent partial parsing of invalid timeout strings.

Comment thread src/lib/schemas.ts Outdated
Comment thread src/commands/agents/test.ts Outdated
@ivanleomk ivanleomk force-pushed the feat/add-timeout-support branch 4 times, most recently from aa4e707 to a2f3b47 Compare June 5, 2026 19:45
@ivanleomk ivanleomk force-pushed the feat/add-timeout-support branch from a2f3b47 to d512cf8 Compare June 5, 2026 19:46
@philschmid
Copy link
Copy Markdown
Contributor

Can you resolve the conflict?

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.

2 participants