Skip to content

Remember last agents-panel state (optional setting) #769

Closed

Description

@currentbits

Goal

Add Settings → General Remember last agents-panel state. When on, the last ⌘./rail toggle survives launch. settings.agentsPanelDefault (Closed/Open, product default closed) remains the fallback when no last state exists. Do not change the product default.

Why

#767 made launch read settings.agentsPanelDefault and treated the session toggle as ephemeral. Users who want the old persist-last-toggle behavior need an opt-in.

Steps

  • Cherry-pick / land Right sidebar starts closed; settings option for default #767 baseline in this worktree (agentsPanelDefault is not on this branch)
  • Add agentsPanelRememberLast through AppSettings, store normalize+set, fakeCoder, devCoder
  • Settings → General checkbox after Closed/Open
  • App launch: remember+last → last; else → agentsPanelDefault
  • Persist last state only on user ⌘./rail toggle when remember is on
  • Tests: store, SettingsModal, collapse remount; keep default closed

Out of scope

  • Changing the product default away from closed
  • Persisting pane-driven auto-collapse as last state

Activity

  1. added
    plan:doing
    plan:done
    and removed
    plan:doing
    on Aug 29, 2026
  2. currentbits commented on Aug 29, 2026

    @currentbits
    OwnerAuthor

    Remember-last is wired: settings.agentsPanelRememberLast (default false) persists the last ⌘./rail toggle in coder.agents.collapsed when on; agentsPanelDefault remains the launch fallback and the product default stays closed. Renderer 1786/1786, typecheck, store normalize/set tests.

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

    plan:done

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions