Skip to content

Fix dev supervisor readiness after UTF-8 log output - #189

Open
hanafusay wants to merge 1 commit into
yc-software:mainfrom
hanafusay:codex/fix-dev-readiness-byte-offset
Open

Fix dev supervisor readiness after UTF-8 log output#189
hanafusay wants to merge 1 commit into
yc-software:mainfrom
hanafusay:codex/fix-dev-readiness-byte-offset

Conversation

@hanafusay

@hanafusay hanafusay commented Aug 4, 2026

Copy link
Copy Markdown

Summary

  • treat readiness log offsets as byte offsets
  • preserve readiness detection after earlier UTF-8 output
  • cover the behavior through the real child process lifecycle

Problem

The supervisor records a log position using the file size in bytes, but readiness polling applied that value as a JavaScript string character offset. Earlier multibyte UTF-8 output could therefore cause a newly appended readiness marker to be skipped.

Verification

  • node --test test/dev-supervisor-child.test.ts
  • npm run typecheck
  • targeted ESLint and Prettier checks

View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

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