Skip to content

follow-up: app-scope framework + lens overrides #2

@fru-dev3

Description

@fru-dev3

WorkspaceConfigBar in src/app-detail.tsx passes domainKey=undefined when rendering chips on an App workspace. That means cycling a framework/lens on an app currently mutates the GLOBAL default, not a per-app override.

Why we deferred: cli-bridge.ts's runChatTurn resolves framework/lens by basename(cwd), and an app's cwd is the underlying domain folder. So plumbing per-app resolution requires:

  1. A new key shape in config — `appFrameworks?: Record<string, FrameworkId>` keyed on the app id (not the cwd basename)
  2. Threading the app id through runChatTurn so it can be passed to resolveResponseFramework
  3. UI: showing "· app" vs "· domain" scope hint on the chip (without resurrecting the noise we removed earlier)

Filed because apps are currently collapsed (SHOW_APPS=false in app.tsx). When apps come back this should be done in the same commit that re-enables them.

Mentioned in commit messages: 19b10d3 (per-domain framework), 144db75 (per-domain lens), b2ed7f7 (apps collapsed).

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestfollow-upKnown follow-ups from commits that should become real work items

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions