بنقرة واحدة
debug-streaming
Debug SSE streaming, provider responses, and delta aggregation issues
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Debug SSE streaming, provider responses, and delta aggregation issues
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Use when bringing the harness method to a NEW or non-sentropic repo — maps the repo's conventions into a harness profile so the same scope/branch/verify kernel applies anywhere.
Use before any creative/design work (a feature, a package, an evolution) — explores intent and design via the spec-ladder with multi-peer adversarial review BEFORE implementation.
Use on any bug, test failure, or unexpected behaviour BEFORE proposing a fix — runs the generic evidence-first root-cause loop.
Use when you have a spec/decisions and need an executable plan — writes a lot-based BRANCH.md from the template and completes with track for realization state.
Use when completing a feature, a design step, or before merging — runs a ≥2-peer consensus review and reconciles the findings, instead of a single rubber-stamp pass.
Use when adding or evolving tests for a feature/bugfix — applies the sentropic test-pyramid, scoped-test loop, environment isolation, and AI-flaky policy.
| name | debug-streaming |
| description | Debug SSE streaming, provider responses, and delta aggregation issues |
| paths | api/src/services/llm-runtime/**,api/src/services/stream-service.ts,ui/src/lib/stores/streamHub.ts,ui/src/lib/components/StreamMessage.svelte |
| allowed-tools | Read Bash Grep Glob |
make db-query QUERY="SELECT id, status, provider_id FROM chat_sessions ORDER BY created_at DESC LIMIT 5"
make db-query QUERY="SELECT sequence, event_type, length(data::text) as data_len FROM chat_stream_events WHERE stream_id='<ID>' ORDER BY sequence"
make db-query QUERY="SELECT model, provider_id, input_tokens, output_tokens, error FROM chat_generation_traces WHERE session_id='<ID>' ORDER BY created_at DESC LIMIT 3"
reasoning_effort param, Responses API vs Chat Completions dual modethinking.budget_tokens format, tool_use block formatcontent_delta events merged in streamHub.ts cachebackground.ts → connectExtensionProxySse()make test-api-ai SCOPE=chat-sync ENV=test-$BRANCH