Skip to content

test: verify AI SDK image tool continuations - #557

Merged
sjungwon03 merged 1 commit into
mainfrom
test/556-ai-sdk-image-tools
Oct 29, 2026
Merged

sjungwon03 merged 1 commit into
mainfrom
test/556-ai-sdk-image-tools

Conversation

@sjungwon03

Copy link
Copy Markdown
Member

Closes #556. Refs #116; Jev #7 remains unresolved.

The pinned AI SDK already had separate image and tool probes. This change composes them through actual generateText/streamText sockets on /v1 and /api/v1, delegated OpenRouter and managed OpenAI/Anthropic/Gemini. Exact first/continued native history retains inline PNG MIME/bytes/text order and tool ID/name/argument/result correlation. Nonstream parallel lookups finish in reverse order; streams run one ordinary read function.

Fresh continuation auth failure, implicit/model/provider Deny and limit exhaustion block the second provider/secret access after application tools have run. Required usage/outcome-audit failure on either request withholds nonstream output or actual final stream usage/DONE. Per-attempt identities/counters and operational content/credential privacy remain intact. Client events/summaries are not persistence or billed-cost evidence; a later failure cannot undo completed tools/provider work.

Plan: 556-ai-sdk-image-tools. Contract: inline-image tool continuations. Reproduction.

Validation:

  • Initial 96 new cases passed unchanged approved production code. This is conformance-only work; no runtime defect or production red/green cycle is claimed.
  • Expanded fresh continuation admission: all 160 new cases and the 430-case focused SDK/native/image selection passed.
  • Full npm run check: 7,945 total, 7,944 passed, zero failures/cancellations, one optional external PostgreSQL skip (~242sec). Typecheck, lint, document/link/fixture-secret checks and all six offline source-integrity checks passed.
  • Existing 42 lint warnings/65 infos remain unchanged. Final document/whitespace/CLAUDE.md symlink checks passed. Production source, scripts, pins, dependencies and storage are unchanged relative to approved main db2535a.

Limits: synthetic credential-free registered transports, pinned clients, one canonical inline PNG and ordinary tool loops. Empty-only download plans and bounded local endpoint fetches do not certify remote media behavior. Signed Gemini, richer media/tools, live vision, other versions/endpoints and full #116 remain separate. Production code, six pins, dependencies and storage remain unchanged.

Measure exact inline PNG and correlated tool history across both chat
bases and all four registered adapters. Verify fresh continuation
admission and first/second persistence failure boundaries through the
actual pinned client without changing production behavior.

Refs: #556
Assisted-by: Codex
Signed-off-by: sjungwon03 <sjungwon03@gmail.com>
@github-actions github-actions Bot added ai-review-requested Review requested from sjungwon03-ai type:chore Routine maintenance labels Oct 29, 2026

@sjungwon03-ai sjungwon03-ai left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review summary

Verdict: Approved

  • Reviewed: Complete test and documentation diff, shared fixtures, native image/tool history, fresh continuation admission, persistence failures, and operational privacy; no blocking issues found.
  • Checks: All three GitHub checks passed. Independently ran all 160 new tests (160 passed), npm run typecheck, python3 scripts/check.py, and git diff --check; all passed.

@sjungwon03
sjungwon03 merged commit 491c3e8 into main Oct 29, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai-review-requested Review requested from sjungwon03-ai type:chore Routine maintenance

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test: verify AI SDK image and tool continuations

2 participants