chat-runtime-debugging
Diagnose Fleet Pi chat runtime failures, including NDJSON streams, Pi sessions, Bedrock model errors, resource loader diagnostics, queueing, aborts, and Plan mode question flow.
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-11
- Stars
- ★ 9
- Forks
- 0
01 前言 Front Matter
- name
- chat-runtime-debugging
- description
- Diagnose Fleet Pi chat runtime failures, including NDJSON streams, Pi sessions, Bedrock model errors, resource loader diagnostics, queueing, aborts, and Plan mode question flow.
03 SKILL.md 正文
Chat Runtime Debugging
Use this skill when chat requests fail, sessions do not resume, tool cards look wrong, or Plan mode/question flow stalls.
Triage Order
- Check the browser-facing route in
apps/web/src/routes/api/chat.ts. - Check Pi runtime creation and session hydration in
apps/web/src/lib/pi/server.ts. - Check Plan mode state and questionnaire handling in
apps/web/src/lib/pi/plan-mode.ts. - Check UI stream consumption in
apps/web/src/routes/index.tsx. - Check shared tool rendering in
packages/hax-design/src/components/agent-elements/tools/.
Common Checks
/api/chat/resourcesshould show resource loader diagnostics without needing Bedrock.- Stored
sessionFilevalues must resolve inside.fleet/sessions. - Live follow-ups and aborts depend on
FLEET_PI_RUNTIME_TTL_MS. - Pi tool lifecycle events should normalize into
tool-Read,tool-Write,tool-Edit,tool-Bash, or generictool-*cards. - Plan mode can use
read,bash,grep,find,ls,questionnaire,project_inventory, andworkspace_index; it must not useeditorwrite.
Validation
Prefer:
pnpm --filter web typecheck
pnpm --filter web lint
pnpm --filter web test src/lib/pi/plan-mode.spec.ts
04 同仓库更多 Skills
memory-synthesis
Distil daily notes, finished plans, and reports into short, grounded updates to memory/project/. Use when raw notes pile up or the user asks to consolidate memory.
execution-plan
Write a resumable plan under plans/active/ for multi-step work, then keep its progress and decision logs current. Use when a task spans several steps or sessions.
doc-gardening
Clean up stale, duplicated, or contradictory notes in this workspace. Use when memory or plans feel noisy or out of date.
memory-synthesis
Distil daily notes, finished plans, and reports into short, grounded updates to agent-workspace/memory/project/.
frontend-design
Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, artifacts, posters, or applications (examples include websites, landing pages, dashboards, React components, HTML/CSS layouts, or when styling/beautifying any web UI). Generates creative, polished code and UI design that avoids generic AI aesthetics.
execution-plan
Write a resumable plan under agent-workspace/plans/ for multi-step work and keep its progress and decision logs current.