Repository navigation
feat(browser): keep logins across sessions with named profiles - #344
Merged
Merged
Conversation
4 tasks
3 of 4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A browser session deletes its Chrome profile at teardown. So an agent that needs a logged-in site makes the user log in again in every session.
Browser sessions can now take a named profile with
--profile <name>or the MCPsession_createprofilefield. Pickforge keeps it at~/.pickforge/lab/profiles/<name>with mode 0700. One session holds a profile at a time. Teardown, crash recovery and the reaper keep it. For a named profile, teardown asks Chrome to close through CDPBrowser.closefirst, because Chrome writes recent cookies to disk only on a clean close. The verified process-group stop still runs afterwards.pickforge-lab profile listandprofile deletemanage profiles. MCP gets a read-onlyprofile_listand no delete. Sessions without--profilekeep the ephemeral profile.Closes #339
profiles/<name>--profile, reuse the profile in a second session, MCPsession_createwithprofile,--profileon a desktop sessionbrowser-session.test.ts,browser.test.ts(MCP),session.test.ts, QA log../x,Upper,-lead, 33 charactersbrowser-session.test.ts, QA logprofiles.test.ts, QA logkill -9of the session group, reaper runsession.test.ts,integration.test.ts, QA logintegration.test.ts,session.test.ts, QA logprofiles.test.ts, QA logSingleton*links afterkill -9, a reused PID, a PID hidden by/procpermissions, other Chromium builds and a linkedPICKFORGE_HOMEprofiles.test.ts,integration.test.tsprofile listandprofile delete--yes, of a missing profileprofiles.test.ts,browser-session.test.ts,browser.test.ts, QA logdocs/releases/UNRELEASED.mdQA pass: I drove the built CLI against real Chrome on the lab's private Xvfb, with an isolated
PICKFORGE_HOMEand a small local cookie server. The pass found the lost-cookie bug, a misleading symlink message, and a list that failed on one bad entry. All three are fixed above and were rerun.Declined as not needed for this change: claiming the hold before session creation, a sleep between lock retries, sweeping orphan lock files, and clearing singleton files during delete.
Rollback: revert this PR. Profiles stay on disk under
~/.pickforge/lab/profilesand can be removed by hand.Council review, 3 rounds: