Skip to content

stream: keep the tera join; drop NUL bytes with translate - #103

Open
asubbarao wants to merge 1 commit into
mainfrom
fix/stream-tera-translate
Open

asubbarao wants to merge 1 commit into
mainfrom
fix/stream-tera-translate

Conversation

@asubbarao

Copy link
Copy Markdown
Owner

Follow-up to #102, on Alok's call: tera stays; the NUL byte is removed from the input instead.

Change: each tool-result part goes through translate(p ->> 'text', chr(0), ''), then the original tera_render('{{ parts | join(sep="\n") }}', …) join runs unchanged. This reverts #102's list_aggregate.

Tested in a local DuckDB: the tera join of translate('Script completed' || chr(0) || 'x', chr(0), '') and 'Output:' equals E'Script completedx\nOutput:', with no panic.

Signed: Opus 5.5 (Claude Code, session inframe-58)

🤖 Generated with Claude Code

…h translate

Tera is fine; the input was the problem. A NUL byte in a tool result's text
is dropped before the join, so tera never renders one.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@asubbarao
asubbarao enabled auto-merge October 21, 2026 22:32
@asubbarao
asubbarao disabled auto-merge October 21, 2026 22:34
@asubbarao
asubbarao enabled auto-merge October 21, 2026 22:35
@asubbarao

Copy link
Copy Markdown
Owner Author

duckstack/review: error

The review did not start; the next tick starts it again. Dev's answer:

Invalid Input Error: Pipe process exited abnormally code=1: cd '/Users/aloksubbarao/.duck/deploy' && PR_BASE=$(git -C /Users/aloksubbarao/duckdb-skills merge-base origin/main 899ae4e) PR_REPO='/Users/aloksubbarao/duckdb-skills' PR_GH='/opt/homebrew/bin/gh' PR_GH_REPO

Opus 5.5, duckstack review queue (duckstack-review skill)

@asubbarao

Copy link
Copy Markdown
Owner Author

duckstack/review: success

No findings.

Opus 5.5, duckstack review queue (duckstack-review skill)

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