Skip to content

feat(ego-browser): expose listProfiles and thread profileId through task-space creation - #281

Open
deepanshu1422 wants to merge 1 commit into
citrolabs:devfrom
deepanshu1422:feat/ego-browser-list-profiles
Open

feat(ego-browser): expose listProfiles and thread profileId through task-space creation#281
deepanshu1422 wants to merge 1 commit into
citrolabs:devfrom
deepanshu1422:feat/ego-browser-list-profiles

Conversation

@deepanshu1422

Copy link
Copy Markdown

Summary

  • Add a documented listProfiles() helper (mirrors listTaskSpaces()), reachable via ego.listProfiles() under the hood — previously only reachable through the undocumented raw ego.listProfiles() call.
  • Thread an optional profileId through newTaskSpace(name, profileId) / useOrCreateTaskSpace(nameOrId, profileId) so they actually bind a new task space to a requested browser profile instead of silently ignoring the argument and always using the default profile.

Why

Hit this directly: asked an agent to open a task space on a specific ego lite browser profile (e.g. "Deepanshu (Toptal)"), and it silently opened the default profile instead — useOrCreateTaskSpace(name, { profileId }) swallows the option. The only reliable path was the low-level ego.createTaskSpace(name, profileId) (positional args). This wraps that properly at the helper layer.

Test plan

  • npm run typecheck clean
  • npm test — 315/315 passing, including new coverage for listProfiles() normalization and profileId threading through newTaskSpace/useOrCreateTaskSpace
  • npm run build clean
  • Manually verified against a running ego lite instance: ego.listProfiles() / ego.createTaskSpace(name, profileId) work as expected

🤖 Generated with Claude Code

…ask-space creation

listProfiles() was only reachable via the undocumented ego.listProfiles()
CDP call, and useOrCreateTaskSpace/newTaskSpace silently dropped a
profileId argument, always binding new spaces to the default profile —
the only reliable way to target a specific profile was the low-level
ego.createTaskSpace(name, profileId).

Add a documented listProfiles() helper (mirrors listTaskSpaces), and
thread an optional profileId through newTaskSpace/useOrCreateTaskSpace
so they actually honor it instead of silently ignoring it.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant