Skip to content

Skill runtime reference: the stream sends a keepalive comment while the agent is quiet - #5

Open
eric-epsilla wants to merge 1 commit into
HarnessRouter:mainfrom
eric-epsilla:stream-keepalive-comment
Open

eric-epsilla wants to merge 1 commit into
HarnessRouter:mainfrom
eric-epsilla:stream-keepalive-comment

Conversation

@eric-epsilla

Copy link
Copy Markdown

Problem

references/runtime-integration.md says the task stream is "made only of data: frames". The server also sends a comment frame, : keepalive, after 15 seconds with no event, so proxies keep the connection open during a long tool run or while the model thinks.

Both templates already skip it, and their tests feed one in. But a builder reading the text concludes the stream sends nothing during a long silent step, and asks for a heartbeat that already exists.

Change

  • references/runtime-integration.md: the paragraph names the keepalive comment and when it comes. It says to skip it, and to read it only as a sign the task is still running.
  • tests/test_cloud_scope.py: checks the text. It fails on main.

Verification

  • python3 -m unittest discover -s tests -p 'test_*.py': 45 tests, OK (1 skipped).
  • With the reference change reverted, the new test fails.
  • The 15-second interval was read from the service's code.

🤖 Generated with Claude Code

…he agent is quiet

The reference said the task stream is made only of data: frames. The server also sends a comment
frame, ": keepalive", after 15 seconds with no event, so proxies keep the connection open during a
long tool run. Both templates already skip it (and test that), but a builder reading the text took
the stream for silent and asked for a heartbeat that exists. The paragraph now names it and says to
read it only as a sign the task is still running.

tests/test_cloud_scope.py checks the text; it fails on main.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@eric-epsilla

Copy link
Copy Markdown
Author

@richard-epsilla, one paragraph, documentation only.

Problem. The stream reference says there are only data: frames, but the server sends : keepalive after 15 s of silence.

Approach. Name the comment in the reference. The templates already skip it and test it, so no code changed.

What I'd like from you: merge with the others. It touches tests/test_cloud_scope.py at the same spot as #1, #3 and #4, so I'll rebase whichever conflicts.

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