Skip to content

fix(timeout, streaming): bump version to 0.2.1, increase server timeout to 30000, and fix streaming format for unknown steps - #12

Merged
philschmid merged 1 commit into
mainfrom
patch-v0.2.1
Jun 5, 2026
Merged

philschmid merged 1 commit into
mainfrom
patch-v0.2.1

Conversation

@philschmid

Copy link
Copy Markdown
Contributor

No description provided.

…ut to 30000, and fix streaming format for unknown steps
@philschmid
philschmid merged commit 5a354f0 into main Jun 5, 2026
6 checks passed

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

Copy link
Copy Markdown

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 bumps the package version to 0.2.1, increases the server timeout header from 600 to 30000 seconds across API requests and curl outputs, and adds a test case for the HumanStreamRenderer handling unknown step types. The reviewer identified a potential typo in the new timeout value, pointing out a mismatch between the client-side timeout limit (3,000 seconds) and the server-side timeout (30,000 seconds), and suggested aligning them to 3,000 seconds.

Comment thread src/lib/api.ts
"Content-Type": "application/json",
"x-goog-api-key": ctx.apiKey,
"x-server-timeout": "600",
"x-server-timeout": "30000",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

high

There is a mismatch between the client-side timeout and the server-side timeout. The client-side fetchWithTimeout helper defaults to 3,000,000 ms (3,000 seconds / 50 minutes), whereas the server-side timeout header x-server-timeout is set to "30000" (30,000 seconds / ~8.3 hours). If the server-side timeout is indeed intended to be 30,000 seconds, the client will abort the request after 3,000 seconds, making the server timeout ineffective. If the intention was to align the server timeout with the client-side timeout of 3,000 seconds, then "30000" contains an extra zero typo and should be "3000". Please verify and align these values.

Suggested change
"x-server-timeout": "30000",
"x-server-timeout": "3000",
Comment thread src/lib/api.ts
"Content-Type": "application/json",
"x-goog-api-key": ctx.apiKey,
"x-server-timeout": "600",
"x-server-timeout": "30000",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

high

There is a mismatch between the client-side timeout and the server-side timeout. The client-side fetchWithTimeout helper defaults to 3,000,000 ms (3,000 seconds / 50 minutes), whereas the server-side timeout header x-server-timeout is set to "30000" (30,000 seconds / ~8.3 hours). If the server-side timeout is indeed intended to be 30,000 seconds, the client will abort the request after 3,000 seconds, making the server timeout ineffective. If the intention was to align the server timeout with the client-side timeout of 3,000 seconds, then "30000" contains an extra zero typo and should be "3000". Please verify and align these values.

Suggested change
"x-server-timeout": "30000",
"x-server-timeout": "3000",
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant