fix(agent-chat): streaming state leak, document parser magic bytes, HITL flow
### Bugfixes — Agent Chat 'Думаю' State Leak - fix(agent-chat): loadHistory() now resets streamingState/idle + cancels stale submission — prevents 'Думаю' state leak across conversation switches - fix(agent-chat): onDisconnected/onDisconnectedPermanent cascade to streamingState — prevents permanent hang on connection loss during stream - fix(agent-chat): guard on isLoadingHistory — prevents false commit of 'agent unavailable' fallback when switching conversations - fix(agent-chat): remove race in _sendNow empty-response check vs Svelte microtask (duplicate logic removed, handles correctly) - fix(stream-processor): confirm_resolved now appends msg.text to partialText instead of dropping it ### Bugfixes — Backend PDF Upload - fix(document-parser): _detect_format_by_magic() — reads file header magic bytes as fallback when Gradio loses filename - fix(document-parser): improved name extraction — tries orig_name, path stem - fix(document-parser): @RELATION AgentChatTypes -> AgentChat.Types ### HITL Flow & Agent Chat Improvements - feat(agent): HITL resume confirm/deny with userId/userJwt/envId propagation - feat(agent): confirm_required metadata fallback via aget_state() after 'Event loop is closed' error during interrupt - feat(agent): interrupt_before re-enabled via AGENT_CONFIRM_TOOLS env var - feat(frontend): debug panel with connection/stream state monitoring - feat(frontend): AgentChatModel constructor options + onBeforeSend callback - feat(frontend): crypto.randomUUID() for local conversation ID on first send ### Backend Agent Refactoring - refactor(agent): langgraph_setup — monkey-patch for PydanticSerializationError - refactor(agent): tools.py — dual identity headers, expanded tool set - refactor(agent): run.py — _find_free_port, Gradio server port fallback - refactor(agent): app.py — file size validation, message truncation, HITL path ### Frontend - feat(dashboard-hub): DashboardHubModel with filters, pagination, git actions - feat(ui): DateRangeFilter component - feat(i18n): new dashboard keys; cache tooltips fix - fix(i18n): full run tooltips — cache is NOT ignored ### Semantic Protocol - chore(agents): update all agents with canonical format - chore(skills): sync semantics-core, semantics-contracts, molecular-cot-logging ### Housekeeping - chore: remove stale semantic reports (10 files, Jan 2026) - chore: update 033-gradio-agent-chat specs, contracts, UX, tasks, tests - chore: add .agents/ directory (mirrors .opencode/ agent layouts) - chore: update run.sh with DEV_MODE, port management
This commit is contained in:
@@ -72,15 +72,14 @@ You must reject polluted handoff that contains long failed reasoning transcripts
|
||||
- Do not generate broad architectural rewrites when a narrower environment, dependency, contract, or harness explanation fits the evidence.
|
||||
|
||||
## Axiom MCP Tools
|
||||
See `semantics-core` §VI for the canonical tool reference. For diagnosis:
|
||||
- `axiom_semantic_discovery search_contracts` — verify contract existence, type, complexity
|
||||
- `axiom_semantic_context local_context` — full context: code + @RELATION dependencies
|
||||
- `axiom_semantic_validation audit_contracts` — structural violations (wrong tier, missing metadata)
|
||||
- `axiom_semantic_validation impact_analysis` — upstream/downstream who calls/who is affected
|
||||
- `axiom_contract_metadata` — check contract metadata (@PRE, @POST, @RATIONALE)
|
||||
- `axiom_semantic_context workspace_health` — orphans, unresolved relations, C1-C5 distribution
|
||||
See `semantics-core` §VI for the canonical tool reference. Axiom MCP exposes 2 tools (`search` and `audit`). For diagnosis:
|
||||
- `search` tool with `operation="search_contracts"` — verify contract existence, type, complexity
|
||||
- `search` tool with `operation="local_context"` — full context: code + @RELATION dependencies
|
||||
- `audit` tool with `operation="audit_contracts"` — structural violations (wrong tier, missing metadata)
|
||||
- `audit` tool with `operation="impact_analysis"` — upstream/downstream who calls/who is affected
|
||||
- `search` tool with `operation="status"` — DuckDB index stats (contract count, edges, active generation)
|
||||
|
||||
Все инструменты работают через DuckDB-индекс (актуальные цифры — запроси `axiom_semantic_index status`) — это твой семантический граф для диагностики.
|
||||
Все операции read-only и работают через DuckDB-индекс — это твой семантический граф для диагностики.
|
||||
|
||||
---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user