Skip to content

Say when a plugin this conversation uses cannot be reached — a failed manifest fetch empties every switch in silence (console.error only), the next reply runs without the tools, and a dead app looks the same as a deliberate disconnect #281

Open

Description

@bencode

Problem

The plugins feature shipped in v1.10.0 loses a connected plugin in silence when its app cannot be reached. The manifest is asked for when the conversation opens and whenever the tab becomes visible (ui-packages/web/src/features/conversation/use-conversation/navigation.ts:96-115), and a failed fetch — the app down, a network blip, a CORS change — ends in console.error and plugins: [] (navigation.ts:104-108); the store holds no other state (use-conversation/state.ts:60-61,130). The reader-visible result: every plugin switch vanishes from the toolbar (composer/composer-toolbar.tsx:88-104 renders only what the manifest returned), the conversation's saved setting (use-conversation/settings.ts setPlugin) loses its only surface, and the next reply assembles its tools from the same empty list (use-conversation/run.ts:77-83), so the model answers without the plugin's tools and tells the reader it has no such capability. Nothing distinguishes this from the designed case — a plugin disconnected in the plugin app, which docs/plugins.md says should disappear — and nothing offers a retry; the reader must leave and return to the tab to try again. This is the silent-capability-change defect #164 fixed for a vanished model, reborn on the new feature, one release later.

Proposal

  • Distinguish a failed fetch from an honest manifest: only a successful manifest that omits a plugin removes its switch, as the protocol intends.
  • On failure, keep the last-known switches rendered but marked unreachable — the title already says what the switch does (composer-toolbar.tsx:95-99); the unreachable state says why it is inert — and add a reader-visible one-line notice at the conversation (the conversation-notice pattern, conversation-panel.tsx:197-206) naming the plugin app as unreachable, with a retry.
  • Keep the console.error (navigation.ts:106) as the observability floor; the notice is the reader's.

Goal

After this, a reader whose plugin app is briefly down sees that the plugin is unreachable and can bring it back with one click; the model never quietly loses tools a conversation turned on, and only a real disconnect in the plugin app removes a switch.

Verification

grep -rEq "plugins.*(error|failed|unreachable)" ui-packages/web/src/features/conversation/use-conversation/state.ts
pnpm --filter @gamma-reader/web test --silent
pnpm check

Refs

Activity

  1. added
    enhancement
    source:scheduled
    on Oct 28, 2026
  2. bencode commented on Oct 29, 2026

    @bencode
    OwnerAuthor

    Posted by the scheduled issue-reviewer loop, independent of the authoring session.

    Audit at d05b6b6 (2026-10-29): valid — evidence intact, not implemented on main. No duplicates (#286 tool naming and #284 the privacy tutorial are different facets; #141 importer plugins is a different feature).

    Evidence checks (all confirmed as cited):

    Sensor: lint ✓; verify fails as expected (no failure/unreachable plugin state in state.ts) — correctly reflects not-implemented.

    Sharpening suggestions:

    • The Verification regex plugins.*(error|failed|unreachable) against state.ts would pass on a comment or an unrelated identifier — placement grep again. Anchor on the outcome: a test that a rejected loadPlugins keeps the previous switches rendered and shows the notice, and that a successful manifest omitting a plugin removes its switch (the designed case the proposal must preserve).
    • One design note: today success also replaces the list wholesale on every visibilitychange; the "keep last-known on failure" half should state whether a mid-reply failure keeps the running reply's tools (it does today via run.ts's snapshot at reply start) — worth one sentence in the Goal so the implementer doesn't re-add churn there.

    Staying open; no maintainer signal seen (zero comments, reactions, assignees).

  3. bencode commented on Oct 31, 2026

    @bencode
    OwnerAuthor

    Re-audit — posted by the scheduled issue-reviewer loop, independent of the authoring session. First review ran against main@d05b6b6; this beat pulled and got the same HEAD — nothing can have moved, and every citation was re-opened fresh.

  4. bencode commented on Nov 6, 2026

    @bencode
    OwnerAuthor

    Re-audit — posted by the scheduled issue-reviewer loop, independent of the authoring session. Third pass; main is still d05b6b6 (pulled today, "Already up to date"), so nothing can have moved — every anchor was re-opened fresh regardless.

  5. bencode commented on Nov 9, 2026

    @bencode
    OwnerAuthor

    Re-audit (fourth pass) — posted by the scheduled issue-reviewer loop, independent of the authoring session. main is still d05b6b6 ("Already up to date"); anchors re-opened fresh — navigation.ts:96-115 (the catch is console.error + plugins: [], span exact), state.ts:60-61,130 (list only, no failure state), run.ts:77-83 (withPlugins snapshot at reply start), load-plugins.ts:12-19 (throws on !response.ok), docs/plugins.md:46 ("A reply already running keeps the tools it started with", verbatim). Verdict: valid, keep open (unchanged).

    Checks new this pass:

    The standing sharpening — outcome anchor over the plugins.*(error|failed|unreachable) placement regex — still open after four passes.

  6. bencode commented on Nov 11, 2026

    @bencode
    OwnerAuthor

    Re-audit (fifth pass) — posted by the scheduled issue-reviewer loop, independent of the authoring session. main is still d05b6b6 ("Already up to date"); anchors re-opened fresh — navigation.ts:96-115 span exact (the catch opens at :104, console.error at :106, plugins: [] at :107 — a one-line micro-correction to the third pass, which quoted :105/:106), state.ts:60-61,130 (plugins list only; no error/failed/unreachable shares a line with plugins, which is why the gate stays red), run.ts:77-83 (withPlugins snapshot at reply start), docs/plugins.md:46 ("A reply already running keeps the tools it started with", verbatim). Verdict: valid, keep open (unchanged).

    Checks new this pass:

    The standing sharpening — outcome anchor over the plugins.*(error|failed|unreachable) placement regex — remains open after five passes.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementsource:scheduled

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions