Skip to content

browser: persistent named login profiles #339

Closed

Description

@ElbertePlinio

Part of #338.

Problem

A browser session deletes its Chrome profile at teardown. An agent that needs a logged-in dashboard makes the user log in again in every session.

Acceptance criteria

  • pickforge-lab session create --type browser --profile <name> and the MCP session_create tool accept a profile name. The session uses ~/.pickforge/lab/profiles/<name> as its Chrome user data directory.
  • Profile names are short and safe for paths, for example [a-z0-9][a-z0-9-]{0,31}. Other names fail with a clear error.
  • Pickforge creates the directory with mode 0700. It refuses a profile directory that is a symlink, belongs to another user, or is readable by others.
  • Teardown, crash recovery and the reaper never delete a named profile. Sessions without --profile keep today's ephemeral profile.
  • Only one live session can use a profile. A second session with the same profile fails and names the session that holds it. The hold ends at teardown and is recoverable after a crash.
  • Chrome singleton files left by a crashed session do not block the next session.
  • pickforge-lab profile list shows each profile's name, size, last use, and the session that holds it, if any. pickforge-lab profile delete <name> refuses while a session holds the profile. MCP gets a read-only profile list and no delete.
  • Docs explain what a profile stores, how Chrome protects cookies without a keyring on Linux, and why users should keep banking, payment and main email accounts out of agent profiles.

Checklist

  • Profile resolution, validation and permissions
  • Session lock and crash recovery
  • Teardown and reaper keep named profiles
  • CLI --profile, profile list, profile delete; MCP session_create profile and profile list
  • Tests, including symlink, permission and concurrent-use refusals
  • README, SECURITY.md and docs/releases/UNRELEASED.md

Activity

  1. added
    enhancement
    on Oct 28, 2026
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

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions