Profile segmentation
Terminal scope, profile switching, archive behavior, and workspace deletion.
2 min read6 pages in Terminal
On this page1
Every terminal, pending input request, journal row, recording, and spilled artifact belongs to one profile inside one workspace. The active profile selects the default read and mutation scope.
Switching profiles re-scopes the terminal list, dock badge, input requests, journal, and recording links together. A terminal in profile A does not appear under profile B, and an ordinary tool or remembered command approval created under A does not authorize B.
Operators can ask for an aggregate read when they need oversight:
compozy terminal list --workspace my-project --all-profiles -o json
compozy terminal input-requests --workspace my-project --all-profiles -o json
compozy terminal journal --workspace my-project --all-profiles -o jsonAggregate rows include profile_id and profile_name. Reading one terminal with --all-profiles
(or all_profiles=true on its detail, catalog stream, recording, or artifact download) finds it in
whichever profile owns it and labels that owner. Interactions such as reading output, waiting,
attaching, and quoting, and every mutation, stay single-profile operations; --all-profiles does not
grant cross-profile mutation authority.
Agent sessions follow the same read policy as every other aggregate: an approve-all session or an
unrestricted workspace-access grant may use all_profiles=true on any terminal read, and any other
agent gets profile_selection_conflict on all of them.
Archive and delete behavior
Archiving a profile closes its live terminals, invalidates attach tickets, and resolves pending input requests. Its journal rows, artifacts, and recordings remain readable as historical facts through operator aggregate reads. Unarchive the profile before using single-profile history reads or opening or mutating a terminal under that owner.
Deleting a workspace removes the terminal runtime and its workspace-owned journal, recordings, and artifacts. Terminal data never needs a cross-workspace query, and a terminal ID from another workspace does not widen the caller's read scope.
The operator-only attention summary exposes terminal approval counts as optional
terminal_approvals entries containing workspace_id, profile_id, and count.
An omitted array means no pending approvals. Counts include child-session permissions;
the shell selects the current workspace and profile before combining them with terminal
input requests. This shares the shell attention refresh without another catalog read.