Skip to content

app: preserve per-agent reasoning effort in Rooms - #3514

Merged
ashhart merged 3 commits into
ashhart:mainfrom
AIflow-Labs:aiflow/3328-room-agent-effort
Nov 19, 2026
Merged

ashhart merged 3 commits into
ashhart:mainfrom
AIflow-Labs:aiflow/3328-room-agent-effort

Conversation

@AIFlowML

@AIFlowML AIFlowML commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

What this changes

Room agents can now save their own reasoning effort. A Low builder and a High reviewer keep those choices independently of the app-wide default; agents without an explicit choice inherit the default captured for that run.

The model-aware selector is available when adding or editing an agent. Its choice follows HTTP/CLI turns, transcript compaction, ticket workers and their recovery routes, and delegated children. Target-seat delegation adopts the target's effort. Active worker composers show the captured value, then return to the ordinary app default after settlement.

The affected Room types, UI, host lifecycle/tools and read-only contracts are split into focused modules to meet the 600-line source limit. Existing public entrypoints and the startup, cancellation, ownership and memory boundaries are preserved.

Checks on this head

Verified 16 November 2026, 16:25 Asia/Bangkok. Base for this PR: aed3edf8bfce226983b2f0d86b8fe38e9601821c. The full-suite receipt below was measured at 3603e42414e3d183b2c7fb4f0306954abae0cbb2. The current app source differs only by removing four trailing blank lines; executable source is unchanged. Focused tests, types, build and mobile verification were repeated successfully on the published head. Our 14 contribution branches also pass 36/36 focused test files in a cumulative composition. This is a focused compatibility run, not a full combined-suite result.

  • Head commit: 3c24cb54e7d382f3c87c1ec5140f76979ffba2fa.
  • Lean checker on base/head: 337/337 inherited findings; zero new findings. python3 tools/pr_check.py --base aed3edf8bfce226983b2f0d86b8fe38e9601821c: zero errors, 0 warnings.
  • Tests run, with the command and pass, fail and skip counts:
    • npm test: 865/867 test files pass. The sandbox Git check fails unchanged on the pinned parent (tracked in app: keep Git working when macOS auto-selects Xcode #3479). The unchanged Parallel search fixture hit a DNS-pinning failure in the full run, then passed an unchanged focused rerun; the parent fixture also passes in isolation, consistent with its external-DNS dependency (offline fixture fix in app: keep Parallel search tests independent of system DNS #3489). No Room-feature test fails. The runner reports file-level results, without a separate skip category.
    • Red/green regressions cover actual Room HTTP/SSE requests and injected CLI turns, host captures before workspace awaits, strict save validation, ticket startup/recovery/settlement, target-agent delegation and actual child HTTP requests. Protected Room settings and worker execution metadata survive a fresh-process reload.
    • Existing heartbeat, timeout/abort, supervisor, shared-memory, ticket lifecycle and owned-child/memory boundaries pass. The composer test follows the actual production JSX and model-picker context, including ordinary-thread and sibling isolation.
    • Playwright against the built browser demo: independent Low/High edits survive leaving/reopening the Room; a new agent retains its saved effort; all five effort controls lock during a simulated run; changing from Codex to GPT-4o replaces unsupported Extra High with Medium. Generic selector tests also cover default choices without a selected model and model-specific levels.
    • npm run typecheck, npm run build, npm run verify:mobile, zig fmt --check build.zig zig (0.17.0), private-leak and test-coverage guards, and git diff --check: pass.
    • The cumulative composition passes 15/15 focused files (14 core checks plus the offline DNS fixture), including this feature's requests/lifecycle/store/UI tests, the existing bot HTTP path, confirmed-setting regression and the queued sandbox Git fix.
  • CI: Zig format: success; App and mobile checks: success; No GPU: success. All 12 applicable upstream checks passed on this head. The two scheduled nightly jobs were skipped.
  • Not run, and why: packaged Electron installer/end-to-end, Windows/Linux desktop execution and live vendor APIs/CLIs were not run. Request propagation is tested with bounded local HTTP and CLI fixtures; browser checks use demo data. Mobile verification covers dependencies, TypeScript and lint. Native-engine/model/GPU benchmarks are outside this app change.

Receipt

  • Main against branch: n/a; this adds app configuration for an existing provider parameter, with no native-engine or kernel changes.
  • Boxes it reaches: saved Room agent parameters, model-aware controls, Room turns/compaction, local ticket worker routing and recovery, delegated child execution and active-worker composer detail.
  • New switch? Default, accepted values, profile row: optional Seat.reasoningEffort; absence inherits the app default captured at launch. Canonical values are none, minimal, low, medium, high, xhigh, max, ultrathink, ultracode, dynamic, 512; the selector offers the selected model's supported subset. No native environment switch.
  • Environment: parent and head above; Apple M5 Max, 128 GiB RAM, macOS 27.2, ARM64, Node 22.23.3/npm 10.9.8. Zig 0.17.0 for formatting only; native backend/checkpoint n/a.
  • Paths and platforms run or not run: local host/runtime and renderer tests on macOS ARM64; built browser demo; mobile verification. Other desktop platforms, live providers and a packaged installer are unrun as noted above.
  • Exactness against "draft": false: n/a; no native inference path changed.
  • Main against this branch before asking for a run: n/a; no model benchmark or maintainer machine run requested.
  • Decode speed before and after: n/a; no decoding code changed.
  • Prompt speed before and after: n/a; no native prompt-processing code changed.
  • Licence of any new weights or drafter: n/a; none added.

Checklist

  • The title and description match the published head, receipt and stack.
  • Regression tests demonstrate the missing forwarding before the change and pass after it; local transports are bounded and require no vendor credentials.
  • New/moved comments and docstrings follow the repository format; measurements and history stay in receipts.
  • No personal data, machine names, internal hosts or local user paths in the contribution or its outgoing commits. No AI attribution trailers.

Igor Lessio - AIFLOW LABS

@ashhart

ashhart commented Nov 16, 2026

Copy link
Copy Markdown
Owner

Thanks @AIFlowML. On top of #3500, each Room seat keeps its own effort, captured when its run starts, and ticket workers, delegated children and target-seat delegation carry it through. An unset seat behaves as it does today, and the new strings are registered. CI is green.

Nothing more is needed from you. It's in our landing queue, right after #3500.

  • Synthena

AIFlowML and others added 3 commits November 19, 2026 13:39
Save model-aware agent choices, snapshot them before startup, and carry them through Room turns, compaction, ticket workers and delegated child runs. Keep inherited defaults and active-worker composer labels accurate. Split the affected Room modules to satisfy the source-size gate and cover actual HTTP requests, lifecycle boundaries and protected-store reloads. Refs ashhart#3328.
Keep worker effort consistent with the Room session even when saved configuration changes during startup. Reuse the typed worker launch contract, extend the real launch regressions, and retain startup guards after the host split. Refs ashhart#3328.
@ashhart
ashhart force-pushed the aiflow/3328-room-agent-effort branch from ce67a5d to 1158cfe Compare November 19, 2026 13:39
@ashhart
ashhart merged commit 517a445 into ashhart:main Nov 19, 2026
2 of 16 checks passed
@ashhart

ashhart commented Nov 19, 2026

Copy link
Copy Markdown
Owner

Thank you @AIFlowML. This is merged into main with your commits under your own name, so you're listed as a TensorFold contributor. It ships in the next release, credited to you in the changelog and the release notes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants