Skip to content

T5: Client rewrite #198

Closed
Closed

Description

@omridevk

Delete all src. SubscribeConnectionAdapter: subscribe closure-bound per session (threadId = row id); send = stop-then-send steer sequencing, caches runContext.runId, THROWS on rejection. queue:'interrupt'. Reconnect retry loop. makeQueryUtils kept. Plan: #183 T5.

Activity

  1. omridevk commented on Aug 3, 2026

    @omridevk
    ContributorAuthor

    T5 landed and audited. Commit 6765932e (+72/−202, 2 files: chat-connection.ts, use-chat-session.ts; query-utils/index untouched).

    Orchestrator audit (personally rerun):

    • Read both files in full: thin SubscribeConnectionAdapter, snapshot-led subscribe with pacer AsyncRetryer reconnect (single-use per attempt per pacer docs), stop-then-send steer, library-minted runId off runContext with throw-if-absent, send throws server rejections through, queue: 'interrupt', refresh() aborts the attempt so the loop re-subscribes and the server re-leads MESSAGES_SNAPSHOT.
    • Gates rerun: build + typecheck PASS (13/13), banned-vocab grep zero hits (adapter only as SubscribeConnectionAdapter).
    • 13 test failures all in ruled buckets (a)/(b), zero bucket (c); chat-reconnect.it and chat-client round-trip pass unedited. All hold-and-flush/BUSY-retry/pump code gone.
    • Accepted the agent's judgment call: no runId cache (nothing reads it — anti-sediment) and refresh on the adapter rather than a library subscribe({restart}) passthrough (ai-solid never exposes ChatClient; observable semantics identical). T6 consumes useChatSession(...).refresh.

    Carried forward:

  2. omridevk commented on Aug 3, 2026

    @omridevk
    ContributorAuthor

    Closed: T5 done, audited.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions