Skip to content

gut(session): remove vestigial model fallback system #2106

@alexey-pelykh

Description

@alexey-pelykh

Summary

The model fallback transition system (resolveFallbackTransition, fallback notices, fallback state in session entries) is dead code in RemoteClaw. CLI runtimes manage their own model selection — RemoteClaw has no model fallback.

What to Remove

  • resolveFallbackTransition() calls and surrounding logic in agent-runner.ts:448-466
  • Fallback notice building and delivery (buildFallbackNotice, buildFallbackNoticePayload)
  • Session entry fields: fallbackNoticeSelectedModel, fallbackNoticeActiveModel, fallbackNoticeReason
  • fallbackProvider, fallbackModel, fallbackAttempts variables in agent-runner.ts
  • selectedProvider, selectedModel tracking (only used for fallback comparison)

Acceptance Criteria

  • Given a message is processed
    When the agent runner executes
    Then no fallback transition logic runs

  • Given the session store
    When entries are written
    Then no fallbackNotice* fields are present

  • pnpm check passes

  • Existing tests pass (or are updated to remove fallback assertions)

Depends On

Metadata

Metadata

Assignees

No one assigned

    Labels

    gutRemoving dead upstream subsystems

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions