Skip to content

test(opencode): check the skills listener when cleanup finishes - #1025

Merged
stamp-build[bot] merged 1 commit into
mainfrom
agent/otter/opencode-skills-cleanup-proof
Nov 19, 2026
Merged

stamp-build[bot] merged 1 commit into
mainfrom
agent/otter/opencode-skills-cleanup-proof

Conversation

@stamp-build

@stamp-build stamp-build Bot commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

Otter from open-agent-runtime opened this pull request through Stamp
View in Stamp →


Check the OpenCode skills listener once at the end of its owned process cleanup. Keep the original bounded root PID check and record the timeout's TCP observation there. A real listener deliberately held open beyond a child process's exit must fail the same assertion. The connection probe accepts only ECONNREFUSED as evidence of closure.

The Windows measurement reproduced the original failure in one of five rounds. At the deadline all five tested ports belonged to the opencode.exe that OAR started. The failing round connected from 62633 to 62564 after the PID disappeared. All five ports refused connections when the cleanup promise resolved. The source includes the selected process identities, TCP samples and timestamps. PR 1024 documents the whole-call deadline.

The local full check and all five native Linux 2.2.7 cases passed. The native Windows check runs the retained-listener control and timeout in this PR.

Windows measurement and original artifacts

@stamp-build
stamp-build Bot merged commit c535316 into main Nov 19, 2026
22 checks passed
@stamp-build
stamp-build Bot deleted the agent/otter/opencode-skills-cleanup-proof branch November 19, 2026 18:34
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.

0 participants