Skip to content

Some web fetches are hanging "indefinitely", stalling the entire session #191

@Taytay

Description

@Taytay

What version of HAPI is running?

hapi version: 0.15.2

What platform is your computer?

Linux 6.12.67 x86_64 x86_64

What issue are you seeing?

I've got a pretty large research task that required Claude Code to go out and fetch some sites and analyze them. In two cases, they hang, and the main process didn't seem to realize it.

Here was one large "task" that hung. This is the output I see when I click on the failed "task". It doesn't actually show the failed/hung web fetch. It just shows the definition of what I think is the "agent call". When I originally clicked on this, you could see it had fetched over 10 github.com links, but one was still in progress, and had been for over 10 minutes.

Research GitHub agentic workflows
Input
Research GitHub's new "agentic workflows" feature for GitHub Actions. This is a relatively new feature (2025) that allows AI coding agents like Claude to be triggered by GitHub events (issues, PRs, etc.) and work autonomously.

Search the web for:

GitHub's official documentation on "github actions agentic workflows" or "claude github actions"
The anthropics/claude-code-action GitHub Action
How to trigger Claude Code as an agent from GitHub Issues or PRs
Best practices for setting up agentic workflows
The workflow_dispatch and schedule triggers for periodic tasks
How Claude Code Action handles creating/updating PRs
Provide comprehensive findings including:

How to set up the action (YAML config)
Trigger mechanisms (issues, PRs, schedule, workflow_dispatch)
How the agent creates/updates PRs
Security considerations (API keys, permissions)
Any examples of periodic/scheduled agent tasks
The recommended way to "kick off" an agentic task (issue vs PR vs other)
Be very thorough - this will be used to write documentation.

Result
Error: [Request interrupted by user for tool use]

When I originally clicked to expand it in Hapi, it showed me that it had read a lot of URLs, but there was one github.com URL that was just spinning for 1800s+.

Later in the same conversation the same thing happened, where it was trying to research something at two different Github.com urls, and one of them hung:

Image Here's the JSON of the tool use when I click on the failed one: ``` { "url": "https://github.com/JohnEarnest/Decker", "prompt": "What is Decker? Give me a concise summary: what it does, who made it, what platforms it supports, its relationship to HyperCard, and its visual aesthetic." } ```

I don't know if this is a CC issue, or a Hapi issue. I've never seen Claude Code do this on the terminal.

What steps can reproduce the bug?

No repro yet, other than having the session do a lot of parallel web fetching to research a task.

What is the expected behavior?

The hung fetch should time out instead of hanging indefinitely

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions