Skip to content

Invalidate cached Jev setup when transport or executable settings change #41

Closed

Description

@CompleteDotTech

Problem

Router.setupPromise caches resolved transport/key/CLI. settings:update only updates the store and does not call router.reset. A successful Save can therefore leave the old transport or executable active until a restart or a key action resets the cache.

Triage

  • Original finding: 2 of 11.
  • Priority: P1. Resolve before the next release because an explicit transport, session, or cost constraint can be violated.
  • Classification: Confirmed behavior/source defect.
  • Inspected current main: 3c2bb240059b3e1bec9264f1e57fa885096c6bf9 (2026-10-01).

Evidence

Source-confirmed: setup() reuses setupPromise; reset() clears it; settings:update has no invalidation. The running settings UI resolves setup when opened, so this is not limited to a previously routed turn.

Source: apps/desktop/src/main/engine/routing/router.ts:58, apps/desktop/src/main/engine/routing/router.ts:68, apps/desktop/src/main/index.ts:132.

Acceptance criteria

  • After a successful relevant settings update, the next status, test, route, and follow-up use the new transport/executable without restart.
  • Refresh visible status after applying configuration; do not clear learned routing history as a side effect.
  • Test configuration changes after initial setup, including CLI-to-HTTP and executable replacement; preserve in-flight turn ownership.

Coordination and validation

Related issues: #40 (finding 1), #42 (finding 3), #46 (finding 7), #47 (finding 8), #49 (finding 10). These are coordination links, not hard blockers.

Recommended sequence: fix transport enforcement/setup invalidation and policy constraints first; coordinate draft testing/status and persistence semantics; then reorganize the UI and add advanced controls. Independent fixes may proceed without artificial dependencies.

Use offline fixtures/fake transports for automated checks. Coding turns remain CLI-only; do not launch live agents or weaken approval/sandbox behavior. Implementation PRs must use their own worktree, update docs/status.md as applicable, and run required build/unit/UI checks. This issue publishes scope and acceptance criteria; no production fix or live-provider verification is claimed.

Activity

  1. added a commit that references this issue on Oct 3, 2026
    d9414b5
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions