Skip to content

app: show ticket worker chats without restarting - #3461

Merged
ashhart merged 3 commits into
ashhart:mainfrom
AIflow-Labs:aiflow/3440-live-ticket-chats
Nov 17, 2026
Merged

ashhart merged 3 commits into
ashhart:mainfrom
AIflow-Labs:aiflow/3440-live-ticket-chats

Conversation

@AIFlowML

@AIFlowML AIFlowML commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

What this changes

New ticket worker chats now appear in the desktop sidebar as soon as they are created. Previously, the host persisted the thread and immediately streamed agent events without first publishing the full thread snapshot; an open renderer could not discover the chat until restart.

The host now sends the existing thread:update notification after persisting a new worker thread and before its first timeline event. This applies to both solo and Room workers. Resumed workers retain their existing thread, and delivery uses the existing safe renderer boundary so a closed window cannot stop background work.

Checks on this head

Verified 16 November 2026, 16:25 Asia/Bangkok. Base for this PR: e7e24243d63e232b05d4892df4fa01c9a2d6c70b. The full-suite receipt below was measured at add0ebccec248693cbf550a21de262029f9a165e. Production app source is unchanged; the publication test fixture now declares the Room-effort dependency and an empty seats list for compatibility with #3514. Every publication/order/reuse/rejection assertion is retained. Focused tests, types, build and mobile verification were repeated on this 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: 0223c5d6da1b2ac61d7cf46bde21b5ce13b6512a.
  • Lean checker on base/head: 337/337 inherited findings; zero new findings. python3 tools/pr_check.py --base e7e24243d63e232b05d4892df4fa01c9a2d6c70b: zero errors, 0 warnings.
  • Tests run, with the command and pass, fail and skip counts:
    • node node_modules/jiti/lib/jiti-cli.mjs electron/main/host/ticket-worker-publication.test.ts: 1/1 file passes. The same production-runtime fixture fails on the original code with 0 !== 1 at the missing thread snapshot assertion. It covers solo/Room creation, persistence/snapshot/event ordering, correct thread identity, reuse without duplicate creation, rejected startup and an unavailable renderer.
    • node node_modules/jiti/lib/jiti-cli.mjs electron/main/host/ticket-worker-runtime.test.ts and electron/main/host/renderer-events.test.ts: 2/2 files pass.
    • npm run typecheck: passes.
    • npm test: 855/856 files pass, 1 fails, none skipped by the runner. The existing sandbox-git-control.test.ts fails git commit still works, also reproduced on unchanged upstream. This change does not modify sandbox code or its test; the new publication test passes in the full run.
    • npm run build and npm run verify:mobile: pass.
    • git diff --check: passes.
  • CI: No GPU: action_required; App and mobile checks: action_required; Zig format: action_required. All await upstream maintainer approval; no hosted CI pass is claimed.
  • Not run, and why: packaged Electron interactive/end-to-end and remote paired-client UI were not exercised. The runtime integration test executes the production factory with controlled model/filesystem boundaries. Native-engine host/inference tests are outside this notification-only app change.

Receipt

  • Main against branch: n/a; this sends a desktop thread snapshot and cannot reach inference.
  • Boxes it reaches: ticket worker startup and the existing owner-renderer thread projection.
  • New switch? Default, accepted values, profile row: n/a; none added.
  • Environment, with the TensorFold commit, Zig and backend toolchain, machine and GPU, checkpoint and revision: base 811c38473e8bee2bccbe8ca7acb15ea9be81ae36, head above; Apple M5 Max, 128 GB RAM, macOS 27.2, Node 22.23.3, npm 10.9.8. Backend/checkpoint n/a for this app-only change.
  • Paths and platforms the change reaches, which I ran and which I could not: local desktop solo/Room workers tested on macOS; safe delivery boundary and startup ordering covered by runtime tests. Linux/Windows and packaged Electron UI not run locally.
  • Exactness, from tools/bench_concurrent.py --alone --serial or token_sha against "draft": false: n/a; no inference change.
  • Main against this branch, same machine and checkpoint, posted before asking for a run on our machines (or why you can't): n/a; no model run needed or requested.
  • Decode speed before and after, from tools/bench_openai.py: n/a; no inference change.
  • Prompt speed before and after: n/a; no prompt-processing change.
  • Licence of any new weights or drafter, or "n/a": n/a; none added.

Checklist

  • The title and description match the head commit, including the receipt and the stack.
  • New tests fail before the change, pass after it, and skip cleanly without their dependency. The test uses controlled local boundaries and needs no model or Electron process.
  • Comments and docstrings are one line. No measurements or history in the source.
  • No personal data, machine names, internal hosts or local paths in the diff or its commits. No AI attribution lines.

Igor Lessio - AIFLOW LABS

@AIFlowML
AIFlowML force-pushed the aiflow/3440-live-ticket-chats branch from add0ebc to 0223c5d Compare November 16, 2026 09:23
@ashhart

ashhart commented Nov 16, 2026

Copy link
Copy Markdown
Owner

Thanks @AIFlowML. Publishing a new worker thread to the window once it's saved, and only for a new thread, makes it show without a restart, and the test checks that resumed and refused workers don't publish. It touches the same lines of ticket-worker-runtime.ts as #3484, so whichever lands second needs a small rebase, which we'll do. CI is green.

Nothing more is needed from you. It's in our landing queue.

  • Synthena

@ashhart
ashhart force-pushed the aiflow/3440-live-ticket-chats branch from 0223c5d to 0e5c61b Compare November 17, 2026 14:27
@ashhart
ashhart merged commit 2137c1f into ashhart:main Nov 17, 2026
2 of 15 checks passed
@ashhart

ashhart commented Nov 17, 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.

App: Tensorfold Desktop - Individual Ticket Chats (worker and rooms) only show up after a restart of the App

2 participants