Skip to content

fix: chunked response parser and video creation source IDs#30

Open
SteveDiamond wants to merge 1 commit intotmc:mainfrom
SteveDiamond:fix/video-create-and-chunked-parser
Open

fix: chunked response parser and video creation source IDs#30
SteveDiamond wants to merge 1 commit intotmc:mainfrom
SteveDiamond:fix/video-create-and-chunked-parser

Conversation

@SteveDiamond
Copy link
Copy Markdown

Summary

  • Chunked response parser: The parser was swallowing the next chunk's size marker as data because the declared chunk size includes a trailing \n that bufio.Scanner strips. Now accepts chunks within 2 bytes of declared size.
  • Video creation source IDs: Replaced hardcoded test source ID (d7236810-...) with dynamic lookup via GetProject, so video creation uses actual notebook sources.
  • Video status RPC: Switched tryVideoOverviewDirectRPC from using the audio RPC (VUsiyb) to the video RPC (R7cb6c) with get mode ([1]).

Test plan

  • Verify nlm add <notebook-id> <url> correctly returns the source ID (no parse error)
  • Verify nlm video-create <notebook-id> <instructions> uses actual notebook sources
  • Verify nlm audio-create and other commands still parse chunked responses correctly

🤖 Generated with Claude Code

The chunked response parser was including the next chunk's size marker
as data because the declared chunk size includes a trailing \n that
bufio.Scanner strips. Accept chunks within 2 bytes of declared size.

Video creation was using a hardcoded test source ID instead of fetching
actual sources from the notebook. Now dynamically looks up sources via
GetProject and uses the first source (multi-source format TBD).

Also switches video status check from audio RPC (VUsiyb) to the video
RPC (R7cb6c) with get mode.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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