Conversation
🦋 Changeset detectedLatest commit: af0261a The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
|
Have we thought about how this affects existing CLI users that have their context names saved locally, and what happens if they don't match the managed name on the Browserbase platform? |
|
Re: the comment by @shrey150 — Addressed in 659d327f1. Existing cached names remain valid local aliases and keep resolving to their saved Context IDs even when the Browserbase-managed name differs. The CLI does not auto-remap them. A colliding contexts create --name now fails before making an API request, so it cannot silently overwrite a legacy mapping; help/docs and an end-to-end mismatch regression cover the migration behavior. |
787d68e to
3137f75
Compare
82ba9d7 to
d2bee7e
Compare
d2bee7e to
b69a671
Compare
Send Context names to the production API while preserving the local alias cache for legacy name-to-ID lookup. Write cache updates atomically through unique private temp files.
b69a671 to
af0261a
Compare
Summary
Move new CLI-created Context names onto the production Browserbase Contexts API while preserving existing local aliases.
--nameto the Context create API; Browserbase owns the canonical project-scoped name.contexts add ... --forcereconciliation.Local nameso cache aliases are not mistaken for an authoritative server list.Stack (#2872)
--return-xpath; supported V3 parity/release checkpointWhy the cache remains
The production API stores an optional name, but current Context and Session calls still address Contexts by opaque ID. Removing the cache would regress
get <name>,sessions create --context-id <name>, anddelete <name>without a server-side replacement.contexts addtherefore remains explicitly a local alias, not a Browserbase rename operation.E2E Test Matrix
The current remote PR head is
af0261ae6ad9b9bf4da5a56fe6edfcd94d76228b. The complete matrix below ran atb69a671a2f792112d7b1ec08027a67d3d86db34a; the only inherited change since then is #2849's test-helper timeout diagnostic, whose focused network tests and Browse lint/typecheck passed at sidecar head9887732b6. Its product diff is unchanged from proof commitd2bee7e1cb31e53bb5df1cc793e704793b7a8cd3, where the broader live session-persistence flow below ran. Local cache and daemon paths were isolated from the user's normal configuration.b69a671a2:pnpm install --frozen-lockfile;pnpm --filter browse build;browse check;browse lintb69a671a2: built CLI against the fake Browserbase server plus Context-store suitePOST /v1/contextswithname, and session create with resolved context ID pluspersist: true.b69a671a2: livecontexts create --name <synthetic-name>;contexts get <synthetic-name>b69a671a2:contexts add <legacy-alias> <same-id>; get by alias; try managed create under the aliasd2bee7e1: livesessions create --context-id <synthetic-name> --persist --timeout 60; release sessionpersist: truepayload.b69a671a2: livecontexts delete <synthetic-name>; list cacheb69a671a2: inspect isolatedcontexts.jsonafter atomic writes0600.The fully verified-head temporary Context was deleted. The earlier temporary session was released and its Context deleted. No credentials, project identifiers, Context/session IDs, or private URLs are included here.