Commit Graph
120 Commits
Author SHA1 Message Date
Alessandro 9ae1939bd6 Restore secure Telegram scopes and preserve legacy configuration
Restore global, project, profile, and project/profile configuration with
one bot identity per saved scope. Preserve inherited configuration and
pause conflicting legacy bot identities without discarding their settings.

Revalidate scope, activation, and access rules for inbound messages,
commands, callbacks, session selection, and outbound delivery. Keep scoped
bots within their owning project/profile, omit credentials from persisted
chat metadata, and sanitize attachment filenames.

Automatically back up existing configuration, activation, and session
mappings before upgrade. Preserve their contents and stable global session
keys, while provisioning secure webhook secrets where legacy settings
require them. Document scope ownership, conflict recovery, and migration.

Validation:
- Docker framework suite: 216 passed, plus 73 subtests.
- Live Telegram status and message/reply round-trip confirmed.
- Missing and forged webhook credentials rejected with HTTP 403.
- Existing live configuration, activation, and session mappings unchanged.
2026-11-12 17:27:15 +01:00
Alessandro e9e6b3faec Fix include placeholder expansion in tool arguments
Expand §§include(path) recursively at the tool execution boundary so
Chat, native Responses, and parallel calls receive file contents even
without streaming. Mutate the original argument dictionary so both
execution kwargs and tool.args receive the expanded values.

Run expansion before tool-policy checks and secret unmasking. Preserve
unreadable-file placeholders, add regression coverage, and document
hook ordering.

Validation: 133 focused tests passed in the a0 conda environment; seven
targeted tests passed in the live localhost:32081 container's framework
runtime. Full-suite and LLM-driven UI testing were not run.
2026-11-01 06:54:57 +01:00
Alessandro 039efe4198 Keep model prose as thoughts and retry silently
Preserve free text and reasoning-only output in the current generation
and retry without intermediate warning rows. Require an explicit response
tool call to finish in both API modes, including after provider built-in
actions.

Keep history metadata, Responses state, tool validation and the
consecutive-failure stop intact. Allow core retries when Context Doctor
and its prompts are unavailable.

Validation: 411 backend tests and 2 Chromium live/replay grouping tests
passed; live runtime health check passed.
2026-11-01 06:50:49 +01:00
Alessandro a48dee035c Raise self-update health timeout to 600 seconds
Give updated and restored WebUI runtimes ten minutes to become healthy,
preserving A0_SELF_UPDATE_HEALTH_TIMEOUT_SECONDS overrides. Backup and
checkout still precede the health-check window.

Expose the configured timeout in update information and use 600 seconds
as the browser fallback, retaining its 30-second buffer. Upgrade older
durable managers through the existing migration with backup protection.

Validation: 55 focused tests passed in the Docker framework runtime.
Three frontend simulations passed for recovery after six minutes, a
900-second override, and expiry at the default 630-second browser limit.
2026-11-01 04:11:27 +01:00
Alessandro 2f7729de35 Fix self-update ZIP dates and reduce backup compression
Allow user-data backups to include files dated outside ZIP's supported
range without changing source file dates. Use deflate level 1 to reduce
backup time while preserving backup contents and existing exclusions.

Require both capabilities in the existing startup migration so installed
durable updaters receive the fixes. Cover old timestamps, archive contents,
and migration of older backup settings.

Validation: 53 focused tests passed in the Docker framework runtime.
On an identical 2.079 GB snapshot, compression level 1 reduced average
backup time from 39.5 to 32.9 seconds with 2.1% larger archives. All four
benchmark archives passed CRC and matching-content checks.
2026-11-01 04:10:39 +01:00
Alessandro e7e79bdd0c Preserve raw recovery logs and DSML call headlines
Keep the original model response in turn-local repair data so Context Doctor
honors Update log content: off retains raw XML/DSML in View Details, while
on shows repaired JSON. Mark successful recovery notices as utility messages
so they follow the existing UTL visibility preference.

Accept an outer headline alongside DSML tool_args and preserve it through
normalization. Keep parallel calls, nested arguments and command escaping
intact, with normal repair fallback and dispatch unchanged.

Add regression coverage for both transports, log-setting states, disabled
Context Doctor, repeated repair hooks and outer versus nested headlines.
Update the owning documentation and include the reported DSML fixture.

Validation: 263 focused tests passed locally and in the Docker framework
runtime. The live instance restarted successfully and its health check passed.
2026-10-28 17:30:49 +01:00
Alessandro 345571ca0e Restore Context Doctor repair before retrying malformed calls
Let unconverted alternate-format output reach Context Doctor's existing JSON
repair path. Remove the leaked-call rejection state, retry hook and prompts
so missing delimiters and other repairable output can execute in the same
turn, restoring the behavior from before PR #1920.

Keep complete XML/DSML/native-text conversion, normal tool permissions,
Context Doctor's XML history cleanup and existing output-limit handling.
Update integration tests and ownership documentation for the restored flow.

Validation: 504 targeted tests passed both locally and in the Docker framework
runtime, including actual agent-loop tests for missing brackets and braces.
Historical comparisons matched pre-PR behavior in 48 cases and confirmed
12 additive format-conversion cases. Restarted the local runtime and verified
its health and extension discovery.
2026-10-27 22:19:53 +01:00
Alessandro e10635aea0 fix: restore Context Doctor handling before tool retries
Separate leaked-call classification from retry handling so Context Doctor
can apply XML suppression, thought splitting, and log settings before the
history entry is saved. Keep rejected calls out of JSON repair and tool
dispatch; disabling XML suppression retains them only as thoughts.

Core still owns bounded retries and history insertion, defaults to {} when
the plugin is disabled, and clears replayable Responses output and pending
continuation state. Update plugin settings guidance and ownership docs.

Validation: 455 focused tests passed locally and in Docker's framework
runtime. Restarted the idle live app, verified health and actual extension
ordering, and found no startup error markers.
2026-10-27 21:58:28 +01:00
Alessandro b13fb41291 fix: keep rejected tool syntax out of model history
Store a neutral {} for rejected or incomplete leaked calls so retries do
not reinforce malformed XML or JSON. Keep the original result available
for diagnostics and preserve the existing warning and retry limits.

Remove replayable output items from the history copy and clear the
Responses continuation after normal history insertion. Retain recorded
turn IDs and usage while forcing the next request to use cleaned history.
This works with Context Doctor enabled or disabled.

Validation: 349 focused parser, dispatch, history, Responses, streaming,
Context Doctor, and retry-limit tests passed for this standalone change.
2026-10-27 21:48:56 +01:00
Alessandro 0e3d267f79 feat: add per-action permissions for bundled tools
Let profiles allow individual operations across all 12 bundled multi-action
tools, such as reading files without allowing writes or listing scheduled
tasks without allowing deletion.

Share action contracts across runtime policy, Agent Editor, text prompts,
and native schemas. Preserve existing whole-tool policies and legacy memory
IDs; only explicit permission edits persist the editor's projection.

Check aliases, defaults, browser batches, reset flags, and parallel
operations at execution. Apply action permissions to automatic browser
context and skill hints.

Validation: 742 focused tests passed. Live Docker checks verified allowed
reads, denied writes through native/legacy/parallel dispatch, blocked
scheduler deletion, and editor save/reload.
2026-10-27 19:06:13 +01:00
Alessandro Frau 31ceafa2c1 Merge pull request #1966 from linkliti/feat/promote-plugins-v2
feat: Tool improvements
2026-10-27 18:24:19 +01:00
Alessandro 1373009168 Simplify leaked tool recovery and log completed responses 2026-10-23 18:18:56 +02:00
lazy 3a2e26981a Fix leaked tool-call recovery before result dispatch 2026-10-23 17:58:23 +02:00
linkliti ebac0eb836 fix(ui): drop agent prefix from warning log rows
Framework warning log rows no longer repeat the agent name before the message text, covering tool and execution errors, the misformat notice, and the truncated, empty, repeat and fallback response warnings. A source-level regression test keeps the warning rows prefix-free, and the message-loop and context-doctor DOX and tests stop expecting the removed prefix.

Validation: pytest tests/test_warning_log_prefixes.py tests/test_tool_action_contracts.py tests/test_message_loop_result.py plugins/_context_doctor/tests/test_context_doctor.py
2026-10-21 23:37:32 +03:00
Alessandro 505c0b4dc6 Clear scheduler errors after successful chat continuation
Failed scheduler tasks stayed in Error when their chats resumed outside the
scheduler runner, even after successful replies and a persistence reload.

Persist the owning task UUID in chat context data and reconcile successful
main-agent monologues with the associated errored task. Save Idle, the
recovered result and its completion timestamp through a checked update.
Preserve planned launch progression, normal retry callbacks and unrelated,
disabled, removed or reassigned tasks. Legacy dedicated chats resolve by
context ID; legacy shared chats still require an explicit scheduler retry.

Add regression coverage for failure, restoration, two successful chat steps,
all task types, JSON/YAML persistence, cancellation and ownership guards.
Update the scheduler and extension contracts.

Validation: 31 scheduler tests passed in the localhost:32081 container's
framework runtime. Broader lifecycle checks: 65 passed, with one unrelated
nudge fixture failure reproduced with reconciliation disabled. No live
provider/model-switch test or service restart.
2026-10-21 14:19:51 +02:00
Alessandro Frau 39960e66f6 Merge pull request #1951 from linkliti/fix/webui-chat
fix: WebUI fixes
2026-10-13 21:40:41 +02:00
Alessandro 675e7d051d Guard truncated native calls and preserve stream finish metadata
Reject incomplete native-call argument JSON during output-limit recovery
while allowing complete calls to proceed. Publish observed finish reasons
and canonical calls before terminal or flushed stream output reaches
callbacks, so early cancellation preserves the original result metadata.

Cover sync and async installed-SDK streams, callback stops, incomplete and
mixed native-call batches, and result/history metadata compatibility.
Update the owning extension and transport documentation.

Validation: 327 focused tests passed in the Docker framework runtime;
333 tests and 11 subtests passed in the updated local environment.
Live localhost:32081 checks passed with Codex Responses and Opus Chat
Completions through the Agent Zero LLM API. A real 64-token Opus cutoff
produced the dedicated length warning and recovered in one retry.
2026-10-13 20:50:30 +02:00
Mohammad Hijjawi 2f8a06515e Surface output-limit truncation instead of misformat retries
Record the Chat Completions finish_reason on LLMResult and add a
message_loop_result extension that, when a turn stopped at the output
token limit (finish_reason "length"/"max_tokens") without a complete
tool request, retries with a warning naming truncation as the cause
rather than the generic misformat message. The warning counts toward
the existing unusable-response loop limit.

Context Doctor now leaves results already handled by an earlier
extension untouched, so truncated envelopes are not repaired and
dispatched with cut-off arguments.

Fixes #1836
2026-10-13 19:38:05 +02:00
linkliti fa150f15b9 feat(agent-init): seed subordinate agents with the greeting few-shot example
The synthetic Hello! user turn was limited to the main agent, so subordinate agents started their history without the few-shot example of the response tool-call JSON. Remove the agent-number guard so every agent receives the seed turn, which the initial_seed metadata marker already keeps out of chat naming for delegated children.

Validation: pytest tests/test_initial_message.py plugins/_chat_naming/tests/test_chat_naming.py (20 passed) on the framework runtime.
2026-10-13 18:06:47 +03:00
linkliti a159b4b624 fix(chat-naming): exclude greeting seed from naming and schedule from monologue_start
The agent-init greeting extension seeds every new chat with a synthetic user turn that chat naming treated as a real user message, so fresh chats were named after the greeting and later band-aids delayed or re-defaulted naming to escape the trap. Mark the seed turn with initial_seed metadata at creation, skip marked turns in user-message selection so seed-only chats schedule no Utility Model call and a real first user message names the chat immediately, and schedule naming from monologue_start again since the background task cannot delay the Main Model.

Validation: pytest plugins/_chat_naming/tests/test_chat_naming.py tests/test_initial_message.py (19 passed) on the framework runtime.
2026-10-13 18:06:47 +03:00
Alessandro fe24597a6a Fix plugin precedence in subordinate profile settings
The profile-settings hook merged a priority-first lookup list with
last-value-wins updates, allowing bundled settings to overwrite community
plugins and higher user/project scopes.

Merge plugin-wide settings, bundled profile, plugin profiles, user profile,
project settings and project profile from low to high priority. Use the
existing stable root-priority sort within each plugin layer, preserving
same-root discovery order, activation scope and cached lookup lists.

Add a failing-before/passing-after regression for both plugin layers,
scoped overrides, fallback, malformed settings and profile/MCP inheritance.
Strengthen metadata override tests with community plugins enabled and
update the agent-init contract.

Validation: 207 focused local tests and 18 precedence tests in the Docker
framework runtime passed. Two isolated fresh-context initialization smoke
checks passed in Docker. git diff --check passed.
2026-10-08 16:42:58 +02:00
Alessandro b91384f4fb Upgrade LiteLLM and OpenAI with framework startup migration
Update LiteLLM to 1.104.0, OpenAI to 2.54.0, and python-dotenv to 1.2.2.
Raise shared security floors for aiohttp, anyio, urllib3, filelock, fsspec,
and multidict while retaining the compatible OpenAI 2.x SDK line.

Use the existing startup_migration hook to apply the same requirements to
v2.x Docker instances updating to v2.14. Read versions from requirements.txt,
install only when requirements are unmet, and reuse restart_process() to
load the upgraded SDKs before serving requests. Skip current and non-Docker
environments, bound installation time, and propagate installation failures.

Add installed-SDK HTTP tests for Chat Completions, Responses, streaming,
tools, state, usage, fallback, embeddings, and Anthropic cache markers.
Cover dependency migration, restart behavior, and installation failures.

Validation:
- 70 focused dependency, SDK, and self-update tests passed.
- Docker startup upgraded the v2.0-v2.13 SDK pins and became healthy in
  24 seconds, with exactly one dependency installation and process restart.
- An already-current startup performed no installation or extra restart.
- pip check passed; live Codex Responses and Moonshot Chat Completions
  tasks and follow-ups validated the upgraded SDK versions.
2026-10-07 14:50:32 +02:00
Alessandro 27b7df8917 Restore full-response repeat checks for native tool calls
Compare public commentary together with canonical function calls when
recording and checking the previous response. This restores the historical
full-message policy for native turns, so changed or missing commentary
can distinguish otherwise identical calls.

Keep canonical call history, masking, provider metadata and state
advancement intact. Exclude provider IDs and separate reasoning from the
comparison; identical public text and calls remain guarded.

Cover commentary changes and absence, call changes and batches, provider
metadata round trips, and legacy thoughts/headline behavior. Update the
owning contracts. Verified with 177 passing tests, four recorded Mac
warning replays and a live two-call drill using the Codex II preset.
2026-10-06 18:49:30 +02:00
Alessandro 55aee9d857 Display native commentary as streamed thoughts
Show public commentary alongside native tool calls in generation logs while preserving separate reasoning summaries. Request commentary without a sentence limit and retain canonical calls when Chat Completions also returns text.

Use display-only previews for agent turns and reconcile completed output without changing legacy callbacks, native dispatch or provider metadata.

Validated with parser, streaming and prompt regression tests, plus live Codex II ordinary and parallel tool chats.
2026-09-15 15:06:04 +02:00
Alessandro 8f184abede Consolidate Responses prompt bookkeeping outside Agent
Keep per-build replay state and model-call adaptation in the existing
Responses helpers instead of adding transport fields to LoopData or a
history-conversion method to Agent. Prompt section owners identify sections;
Responses owns alternate templates, while MCP supplies filtered server context.
Remove the persisted replay counter used only for diagnostics.

Retain public history compatibility, canonical masking and shared stream
normalization at their existing boundaries. Across the remediation series,
agent.py additions decrease from 61 to 24 lines without introducing new hooks.

Validation: 1633 root tests passed, one skipped; framework prepared-input
probe passed. Live Codex and Venice presets completed terminal checks, with
56% cache hit shown in the Codex Context window viewer.
2026-09-06 23:08:10 +02:00
Alessandro 32aa95e8dd Preserve native Responses history within prepared prompts
Project intact call/result groups from the current prepared local Responses
input, retaining original IDs and encrypted reasoning. Bind replay to the
visible prefix and tool scope; preserve summaries, masking, protocol, extras
and untouched Chat/fallback input. Keep request conversion in Responses helpers.

Recover output items omitted by terminal stream envelopes and keep native
call commentary out of plain-response finalization. Do not rewrite stored
chats or change tool execution policy.

Validation: 1632 root tests passed, one skipped; framework prepared-prompt
probe passed. Live Codex and Venice presets completed terminal calls, native
replay advanced from three to four calls, and the viewer reported 57% cache hit.
2026-09-06 22:08:21 +02:00
Alessandro bf31f47c7b Document and verify greeting history and log ownership
Correct the initialization contract: the synthetic user seed is hidden, while the assistant greeting has a response log linked to its history ID. Preserve the existing user-first ordering and intentional Context Doctor thoughts splitting.

Add coverage for idempotent initialization, JSON and plain-text greeting profiles, linked logs and non-LLM metadata after reload. Verified with 48 greeting, history, prompt-protocol and Context Doctor tests.
2026-09-06 20:38:35 +02:00
Alessandro 71f32b7b8b Stream native tool arguments through the existing live display
Expose named Responses function arguments as they arrive, buffering interleaved display envelopes while retaining canonical call metadata. Normalize tool aliases before stream consumers and apply masking before complete tool previews as well as partial ones.

Reject incomplete generations and native-call streams without completion so partial previews cannot become executable text calls. Verified with 103 focused tests, a framework runtime probe, live Codex Responses and Venice Chat Completions runs, and a 69% Codex cache hit in the Context window viewer.
2026-09-06 20:19:45 +02:00
Alessandro 5602d5c4be Preserve native calls in assistant history and repeat checks
Store canonical function-call content through the existing assistant history and masking path, preserving original provider metadata. Compare that same content when detecting repeated responses so accompanying commentary cannot hide distinct calls.

Validated with 87 focused architecture, result, logging and Context Doctor tests plus a framework runtime history/repeat probe. Native history replay remains a separate change.
2026-09-06 20:10:46 +02:00
Alessandro 9d9d6e1a89 Project native system instructions only for Responses requests
Record protocol substitutions at the existing system-section owners and apply
them to copied Responses input when native A0 tools are present. Keep original
Chat and fallback messages intact, remove duplicate local tool guidance, and
preserve policy-filtered MCP server context.

Provide a profile-overridable native communication template and keep the JSON
brace terminator in the legacy protocol. Stored history remains unchanged.

Verified 127 focused tests, Docker framework rendering, and same-chat Codex to
Venice to Codex terminal tasks. Codex input fell from about 16.4K to 11.3K after
removing duplicate guidance. Native history/reasoning replay remains separate.
2026-09-06 19:40:29 +02:00
Alessandro d665408d9f Preserve rollback stash identity during self-update
Track rollback snapshots by Git object ID so an existing stash does not
make a successful snapshot look like a failure. Apply the saved object
and resolve its current reflog entry for cleanup, preserving unrelated
stashes and retaining snapshots when restoration fails.

Upgrade installed updater copies through the existing startup migration.
Cover staged, unstaged and untracked changes, changing stash stacks,
conflicts and stale runtimes. All 50 focused tests pass; the installed
framework-runtime check passes and the restarted WebUI returns HTTP 200.
2026-09-06 18:42:05 +02:00
linkliti 60073f283a Add LLMResult.non_llm sentinel and apply frdel review findings
Add LLMResult.non_llm classmethod for non-LLM AI turns (greeting, intervention progress) so stored metadata does not claim a Responses-API turn. Rename is_thoughts_fallback to looks_like_tool_call (inverted polarity: True when valid A0 response JSON). Rework check to accept any dict containing at least one A0 key (thoughts/headline/tool_name/tool_args); empty dicts and non-A0 dicts fall through to the raw-text fallback branch. Fix drawMessageAgent kvps order to thoughts, tool_name, tool_args keys (reserved keys skipped), then step; reserved keys (thoughts, step, reasoning, tool_name, tool_args, args, headline) win over colliding tool_args keys. Document Hello! seeding turns as few-shot example, drawMessageDefault as deprecated, and plugin get_log_object duplication as intentional. Align context_doctor DOX kvps sentence with code (reasoning only, not thoughts).
2026-09-04 17:44:40 +03:00
linkliti 4634070e95 Own Responses-API state advancement in hist_add_ai_response
Make llm_result required in hist_add_ai_response and move _remember_llm_result_state inside so plugin authors cannot silently break response_id chaining. Drop manual state calls in main loop and _30_repeat_response. Pass empty LLMResult() for greeting and intervention progress. Document invariant in root AGENTS.md and affected extension DOX.
2026-09-04 16:12:38 +03:00
linkliti d75f6a259d Dedupe response-tool prompt clause and document reasoning revert intent
Drop duplicate plain-text-invalid clause from response_tool_tips (covered by communication.md). Note reasoning-to-thoughts revert (77e55152) as maintainer UX call in response_stream_end DOX.
2026-09-04 15:12:39 +03:00
linkliti 296c7095ea Polish DOX prose to match frdel imperative-contract pattern
Diary verbs and packed bullets in AGENTS.md updates converted to imperative contracts and parallel ownership lines matching e138e33c baseline.
2026-09-04 15:09:34 +03:00
linkliti 4a71f03768 Count thoughts_fallback warning toward unusable-response limit
Context Doctor's fw.msg_thoughts_fallback.md warning was excluded from the core stop-unusable-response loop allowlist, so consecutive plain-text fallbacks never advanced the counter. Add it alongside misformat, repeat, empty_response, and reasoning_only, update the plugin DOX, and cover the behavior with a regression test.
2026-09-04 11:18:17 +00:00
linkliti 19da9a07e3 Own fallback turn retry in Context Doctor
Context Doctor now persists the transformed thoughts JSON via hist_add_ai_response before emitting the fallback warning, matching the RepeatResponse retry pattern. Simplify is_thoughts_fallback to check tool_name absence so split multi-paragraph and native thoughts JSON are detected. Remove the core stop-unusable-response-loop counter for plugin-owned fallback warnings. Delete unreachable skip_default_processing block after the early fallback return.
2026-09-04 00:20:43 +03:00
linkliti a61d24e003 Update DOX files according to previous commits
Document initial greeting turn order, reasoning-only warning ownership, message action rendering, process-step accents, and GEN scroll behavior introduced by recent changes.
2026-09-04 00:20:07 +03:00
linkliti 85cc95264f Add initial user turn to preserve AI greeting turn order
output_langchain pops leading AIMessage to enforce human-first turn order. Without a project selected, protocol block is empty and AI init greeting becomes leading message, gets popped, disappears. Add placeholder user turn (Hello!) from fw.initial_user_message.md before AI greeting so history starts with HumanMessage on both project and non-project paths.
2026-09-03 19:07:18 +03:00
linkliti 0bd5f34848 Handle reasoning-only and plain-text fallback responses
Reasoning-only turns now retry with an agent-facing fw.msg_reasoning_only.md history warning and a separate fw.msg_reasoning_only_response.md user notice, counted by the stop-unusable-response-loop extension instead of falling through to the unclear misformat path. Context Doctor detects raw-text fallback conversions and claims the turn with fw.msg_thoughts_fallback.md agent warning and fw.msg_thoughts_fallback_response.md user notice, also counted by the stop loop. Both cases set skip_default_processing so the model gets a clear retry instruction.
2026-09-03 03:37:59 +03:00
linkliti 77e5515261 Revert escalating reasoning to thoughts kvp
Revert the stream-end copy of reasoning into thoughts, the context-doctor preservation of thoughts through log refresh, the related regression tests, and the AGENTS.md wording. thoughts is no longer auto-populated from reasoning when absent.
2026-09-03 03:37:59 +03:00
linkliti b9ecb61a5c Use 4-space indented tree in workdir EXTRAS
Token-compact 4-space indented output replaces box-drawing for the agent-facing workdir file structure in both the project and non-project paths. The settings and projects preview modals keep the box-drawing variant for humans and note that the agent receives the compact form.
2026-09-03 03:37:59 +03:00
Alessandro 3400beccac Hide disabled capabilities from system prompts
Move configurable tool and delegation guidance out of always-on and profile prompts so policy-filtered tool prompts remain the source of truth. Gate live Browser context by profile policy and add regression coverage across bundled profiles.
2026-08-31 01:55:40 +02:00
Alessandro 1432bde85e Optimize scoped tool policy resolution
Reuse one fresh policy snapshot across tool prompt and Responses schema batches while keeping execution-time enforcement current. Add adversarial coverage for cross-agent isolation and policy changes after tool advertisement.
2026-08-30 18:16:34 +02:00
Alessandro dcf5c1500e Preserve native reasoning as thoughts
Promote native reasoning summaries after response streaming completes and keep the normalized thoughts through Context Doctor log refreshes. Add regression coverage for both lifecycle boundaries.
2026-08-27 08:54:47 +02:00
Alessandro 4f16db4650 Restore formatted response streaming
Render root responses with safe Markdown and LaTeX throughout live updates, removing the raw monospace-to-formatted swap at completion.

Update the stream contract and focused regressions while preserving the existing realtime synchronization optimizations.
2026-08-27 07:04:51 +02:00
Alessandro cb39a16c24 Optimize realtime WebUI synchronization
Negotiate collection deltas and preserve sidebar row identity so high-rate log streams avoid resending and reconciling unchanged state. Bound streamed log fields, defer expensive response formatting until completion, update capped process groups only for new steps, and keep disconnect and terminal task state accurate. Add focused lifecycle, snapshot, sync, and WebUI regressions.
2026-08-26 15:27:36 +02:00
Alessandro 2c09a4ed72 Simplify Vision Model routing and execution 2026-08-25 20:20:00 +02:00
Alessandro 0354324e13 Consolidate vision tool prompts 2026-08-25 19:26:25 +02:00
Alessandro 59f5ae03ea Integrate vision sidecar routing with model presets
Add a strict per-preset sidecar slot, Main-first routing, one-call multi-image analysis, parallel-worker image resolution, and inline model settings with focused regression coverage.
2026-08-25 19:26:25 +02:00