Skip to content

Reconcile backend-switching consent with policy that can abandon an existing CLI session #44

Closed

Description

@CompleteDotTech

Problem

The checkbox promises switching only when a thread has no session to lose. Policy also allows switching when hasSession is true and dependsOnPriorTurns < 0.4. When other selection conditions are met, enabling the displayed option can abandon an existing session beyond its stated scope.

Triage

  • Original finding: 5 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 canSwitch condition: allow_backend_switch && (!current.hasSession || j.dependsOnPriorTurns < 0.4). Switching additionally requires model availability/target-tier conditions; it is not unconditional.

Source: apps/desktop/src/renderer/components/SettingsDialog.tsx:219, apps/desktop/src/main/engine/routing/policy.ts:85.

Acceptance criteria

  • Honor the displayed no-existing-session restriction, or introduce explicit separate consent for mid-thread session loss with accurate explanatory text.
  • Judge output supplies selection evidence, never additional execution authority or implicit permission to discard context.
  • Test existing/no-session cases, continuity scores, unavailable backends, and capability gaps; update docs consistently.

Coordination and validation

Related issues: #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