8000 min 0.8: `min session activate` refuses pkgs — minimal.toml has three session entries and none named `default` · Issue #1616 · gominimal/pkgs · GitHub
[go: up one dir, main page]

Skip to content

min 0.8: min session activate refuses pkgs — minimal.toml has three session entries and none named default #1616

Closed

Description

@bryan-minimal

Problem

With min 0.8 (seen on 0.8.0-dev.549.ga42a9d6d), min session activate on any pkgs checkout fails before it creates a session. The error says the project has no session entry named default. This breaks the local build workflow the agents use (min session activate . → min package build).

pkgs' minimal.toml declares three session entries:

[sessions.shell]     # bash
[sessions.claude]    # claude --dangerously-skip-permissions
[sessions.opencode]  # opencode

Why

min 0.8 picks the entry to activate in pick_session_entry (gominimal/minimal crates/minimal/src/cmd/boxes/create.rs, NET-060), in this order:

  1. a session entry named default;
  2. else the only session entry, if there is exactly one;
  3. else, with no session entries at all, the implicit [sessions.default] (BOX-165);
  4. else, with two or more and none named default, it refuses (SessionEntryUndecided::NoDefault).

min session activate has no option to name an entry, so pkgs always lands in case 4.

Impact

Four agents packaging the fv-lab tools on 2026-11-20 hit this (pkgs#1608–#1615). Each one temporarily renamed [sessions.shell] to [sessions.default] to activate, then reverted the rename without committing it. That works, but every local pkgs build needs the same uncommitted edit, and an edit made after activation is easy to commit by accident.

Proposal

Rename [sessions.shell] to [sessions.default] and keep its contents. Activation then picks the plain bash session, as it did before 0.8.

  • Nothing in pkgs refers to the shell entry by name: the only match for shell as an entry is minimal.toml itself.
  • claude and opencode are unchanged.
  • The four agents' activations above ran with exactly this change.

Alternative: add [sessions.default] as a copy of shell and keep shell. That leaves two identical entries to keep in sync, so I'd only do it if someone uses the shell name.

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

      0