Skip to content

Conversation

@OrKoN
Copy link
Collaborator

@OrKoN OrKoN commented Jan 17, 2026

Fixes #786

@kth8
Copy link

kth8 commented Jan 17, 2026

@OrKoN thanks for the quick fix. I tried your patch but still getting timed out, after 10 seconds this time instead of 5.
image
This is what my agent came up with to increase timeout to 60 seconds:
image
I think fill_form also have this behaviour.

@OrKoN
Copy link
Collaborator Author

OrKoN commented Jan 17, 2026

@kth8 I think the agent is not quite right here because the locator.fill() ends up in keyboard.type:

We also do not want a 60 sec timeout as it is too long if there are other issues not related to typing. Perhaps we should just have a different tool like paste_text for large blocks of texts so it does not require typing.

Are you sure you correctly re-built and used the server from this branch? can you reproduce the timeout by running the tests from this PR on your machine? can you try adding a test that would demonstrate the timeout? I wonder if there is some dependency on the page content?

@kth8
Copy link

kth8 commented Jan 17, 2026

I think your suggest of adding a separate paste_text tool is a good option.

I cloned the branch with your patch and ran it via

git clone -b orkon/input-timeout https://github.com/ChromeDevTools/chrome-devtools-mcp.git
npm ci
npm run build
node build/src/index.js --browserUrl=http://192.168.122.239:9223

I tried on another site like chatgpt.com and the tool didn't timeout like before but MCP itself did this time, but I think that may be a client (opencode) configuration issue. A paste_text would prevent this and save a lot of time.
image

@OrKoN
Copy link
Collaborator Author

OrKoN commented Jan 17, 2026

Thanks for testing! I think we will land this next week (maybe increasing timeouts linearly according to the input length, instead of per block of 1k chars). But I think I will also look into fixing the fill() method in Puppeteer to switch to pasting the entire text at once for large texts.

@OrKoN OrKoN added this pull request to the merge queue Jan 19, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 19, 2026
@OrKoN OrKoN added this pull request to the merge queue Jan 19, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 19, 2026
@OrKoN OrKoN force-pushed the orkon/input-timeout branch 3 times, most recently from fea3706 to 0f930be Compare January 19, 2026 12:42
@OrKoN OrKoN force-pushed the orkon/input-timeout branch from 0f930be to 3fec51f Compare January 19, 2026 12:42
@OrKoN OrKoN added this pull request to the merge queue Jan 19, 2026
Merged via the queue into main with commit a83a338 Jan 19, 2026
20 checks passed
@OrKoN OrKoN deleted the orkon/input-timeout branch January 19, 2026 13:05
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.

Filling large amount of text result in timeout

3 participants