Repository navigation
fix: retain partial JSONL tails in watched sessions - #106
Conversation
|
Hi @patoles , I'm trying to sign the CLA, but the CLA Assistant page is not loading the agreement. Its Could you please check the CLA Assistant configuration or let me know if there is an alternative way to complete the CLA signing process? Thank you! |
|
Thanks for flagging this, and sorry for the hassle! It isn't you: cla-assistant.io itself has been having problems for the last week or so (other projects are reporting the same blank agreement page). The agreement itself is here: https://gist.github.com/patoles/dd124652ae56fb3bbf78f2a21ce6ff64 To keep things moving, could you read it and reply on this PR with "I have read the CLA document and I hereby sign the CLA"? That works as your signature for this PR. Once the service is back, feel free to sign through the bot link too so it's on file there. I'll review the changes in the meantime. |
|
Thanks for the quick turnaround, this looks great! The fix matches the Codex watcher and the regression tests cover exactly the right cases. Two small things before it can go in:
That's all from my side. Thanks again! |
|
Merged, thank you so much! This was a really nice catch, and the repro in #105 made it quick to confirm. Thanks also for turning the fixes around so fast. It will ship in the next release. |
…es#96 patoles#97 patoles#98 patoles#99 patoles#56 patoles#103 patoles#104 patoles#106) Conflict resolutions: - hooks-config.ts / uninstall.js / .vscodeignore: take upstream's hook-entries refactor (supersedes our earlier partial port of the v0.9.2 hook fixes). - app/src/server.ts: keep our read-only (GET/HEAD) + --host handling and add upstream's DNS-rebinding guard, adapted: loopback binds accept loopback Host only; LAN/WAN binds (--host 0.0.0.0) also accept IP-literal Hosts and names in AGENT_FLOW_ALLOWED_HOSTS (new isAllowedRemoteHost in request-guard.ts). Upstream's loopback-only check would have locked out remote/phone access. - protocol.ts / event-source.ts: both sides added fileTail; keep our docs, add upstream's SubagentState.completed. - timeline-panel.tsx: keep mobile maxHeight + upstream model hover handler. - transcript-parser.test.ts add/add: ours kept, upstream's moved to transcript-parser-upstream.test.ts; upstream fixtures get pendingCatchUpSpawns. - package.json test script: keep ours (cross-env, web/**) which is a superset.
What does this PR do?
Fixes #105 by preserving incomplete JSONL records between successive file reads.
fileTailto retain incomplete trailing JSONL data.Closes #105
How to test
Run the following commands from the
extensiondirectory:npx tsx --test "test/**/*.test.ts" npx tsc --noEmitTest results:
Checklist