Skip to content

viewer: a repository config can turn on automatic viewer launch #370

Open

Description

@ElbertePlinio

viewer.mode is read from the merged config, and a project .picklab/config.json overrides the user's global config. A repository can therefore ship {"viewer":{"mode":"auto"}} and make session create and the MCP request_takeover tool open the viewer window on the user's desktop, although the user never turned on automatic launch.

The viewer is watch only until the human presses Take control, so this does not grant input. It does let a repository decide when windows open on the user's desktop. Other trust-sensitive keys, such as run storage, are read from the global layer only.

Found during the council review for #341. The README documents the project layer for viewer.mode, so this needs an owner decision before any change.

Acceptance criteria:

  • Decide whether viewer.mode: "auto" may come from a project config.
  • If not, session create and request_takeover read it from the global layer only, the README says so, and tests cover a project config that sets auto.

Activity

  1. ElbertePlinio commented on Oct 28, 2026

    @ElbertePlinio
    MemberAuthor

    Owner decision: viewer.mode: "auto" is honored only from the global config. A project config must not turn on automatic viewer launch.

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