Skip to content

feat(gemini): document SSE functionCall gap with TODO for Phase 4#1660

Merged
bug-ops merged 2 commits intomainfrom
feat-gemini-sse-streaming-path
Mar 13, 2026
Merged

feat(gemini): document SSE functionCall gap with TODO for Phase 4#1660
bug-ops merged 2 commits intomainfrom
feat-gemini-sse-streaming-path

Conversation

@bug-ops
Copy link
Owner

@bug-ops bug-ops commented Mar 13, 2026

Summary

  • Added TODO comment in parse_gemini_sse_event() (crates/zeph-llm/src/sse.rs) documenting that GeminiStreamPart lacks a function_call field and that functionCall SSE chunks are silently dropped.
  • chat_with_tools() currently uses the non-streaming endpoint, so this is safe — the TODO is purely a forward-looking marker for Phase 4.
  • Created tracking issue feat(gemini): Phase 4 — SSE streaming tool use (functionCall chunks) #1659 for Phase 4 (SSE streaming tool use), referenced in the TODO.
  • Updated CHANGELOG.md.

Test plan

  • cargo +nightly fmt --check passes
  • cargo clippy --workspace --features full -- -D warnings passes (0 warnings)
  • cargo nextest run --config-file .github/nextest.toml --workspace --features full --lib --bins passes (5236 tests)

Closes #1639.

GeminiStreamPart in sse.rs has no function_call field, so functionCall
chunks are silently dropped when Gemini streams tool calls via SSE.
chat_with_tools() uses the non-streaming endpoint today, so behavior is
correct. Added a TODO comment (referencing #1659) at the drop site to
ensure Phase 4 (SSE streaming tool use) addresses this before enabling
the streaming path for tool-use sessions.

Closes #1639.
@github-actions github-actions bot added enhancement New feature or request size/XS Extra small PR (1-10 lines) documentation Improvements or additions to documentation llm zeph-llm crate (Ollama, Claude) rust Rust code changes and removed size/XS Extra small PR (1-10 lines) labels Mar 13, 2026
@bug-ops bug-ops force-pushed the feat-gemini-sse-streaming-path branch from 7532063 to d48ad5f Compare March 13, 2026 17:44
@github-actions github-actions bot added the size/XS Extra small PR (1-10 lines) label Mar 13, 2026
@bug-ops bug-ops enabled auto-merge (squash) March 13, 2026 17:45
@bug-ops bug-ops force-pushed the feat-gemini-sse-streaming-path branch from d48ad5f to 8ad2268 Compare March 13, 2026 17:54
@bug-ops bug-ops merged commit 8666d22 into main Mar 13, 2026
15 checks passed
@bug-ops bug-ops deleted the feat-gemini-sse-streaming-path branch March 13, 2026 18:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation enhancement New feature or request llm zeph-llm crate (Ollama, Claude) rust Rust code changes size/XS Extra small PR (1-10 lines)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(gemini): SSE streaming path silently drops functionCall chunks

1 participant