Skip to main content

Can a profile carry its own plugin setup?

Question: Can each DropTerm profile carry its own plugin enablement — "this profile runs plugins X and Y, that one runs none" — following the existing per-profile field pattern (color_scheme, env, font_size, scrollback_lines, input_mode)? And second leg: which of DropTerm's settings can be isolated per profile at all, and which structurally cannot?

Date: 2026-12-02 (code surveyed at 25fddadf)

TL;DR: Feasible as-is for the per-tab plugin surfaces — no host-per-tab refactor — because every one of them already dispatches with a tab id the shell can gate: chips and tab decorations are asked and answered per tab (TabTitleAsk even carries the profile name today), terminal events deliver with { tab }, script commands run against a named tab, and menu and palette rows are composed at open time. The named seam is the shell's dispatch points (sync_tab_titles, the host drain, palette_catalog, menu_entries, the RunCommand arm), each of which can filter on the tab record's profile. What structurally cannot follow a profile: the app-global surfaces — panel views and rails, declared bands, styles, dialogs, output channels, the clipboard watch, plugin state and settings values — because they are chrome or app-wide seats with no tab in their shape, and the Lua interpreter itself stays one-per-process. Enablement here is therefore audience scoping (which surfaces a plugin's outputs reach), not execution scoping (its handlers still run in the one interpreter); true per-profile execution would need per-profile interpreters or a whole-interpreter reload on every profile switch, both rejected below. There is no enablement switch to override today: plugins cannot be disabled at all, globally or otherwise — the store has no such key, ScannedPlugin no such field, and the docs none such gesture. The settings-isolation audit (below) finds 12 config keys already per-profile-or-spawn-profiled, 15 isolatable with new per-tab plumbing through seams that already exist per pane, and 25 structurally app-global.

Findings​

1. The plugin runtime is one interpreter, one thread, one process — and it is already tab-aware​

  • The host is "one dedicated host thread owning one mlua interpreter for its life" (lua_host.rs:3-6); the UI thread never executes Lua and never blocks on it (lua_host.rs:6-11). LuaHost is constructed once at boot, over the config dir's plugins/ plus the binary's embedded plugins (app_shell.rs:10713-10716, with_embedded, lua_host.rs:684-692); the shell holds it as a field (app_shell.rs:937) and "one owner (the shell)" is the documented shape (lua_host.rs:631-632).
  • Lazy materialization: constructing the host builds channels and nothing else; the first command spawns the thread, which scans the plugins dir and loads each script (lua_host.rs:23-28). Every session sends that first command — the startup mark at the first pump (app_shell.rs:1611-1617, :2372-2373) — so plugins load once per app boot, never per tab or per surface.
  • The interpreter generation holds the five registration seats — the event registry, tab_title, tab_chips, commands, panel_views — plus the owner stamp, the settings store, and the manifests (lua_host.rs:2040-2053). Hot reload recreates the interpreter whole; "under the registry-table design a re-run file could not un-register its old handlers, so the whole interpreter is the only sound reload unit" (lua_host.rs:49-56). This is why scoping must be an audience filter, not a load/unload dance: the only reload unit is everything.
  • Tab awareness exists as per-dispatch stamps, not per-tab state: the timeout frame carries ctx_tab — the dispatching tab, set per unit, nested emits inheriting it (lua_host.rs:1960-1964) — and ctx_plugin, stamped by the PluginStamp scope guard around each handler call (lua_host.rs:1997-2010, guard at :2017-2026). Events deliver with the tab in the payload (all seven names carry { tab }, plugins.md:705-713).

2. There is no plugin enablement switch anywhere — the feature would start from zero, not from a global key​

  • DropTermConfig carries no plugins key of any kind (config.rs:171-569: the whole serialized key list; the settings-store files are config.ron/profiles.ron/keybinds.ron, store.rs:18-22). Plugin configuration lives outside the config table entirely: the settings store plugins-settings.json (plugins_manifest.rs:73) and the state store plugins-state.json (plugins_manifest.rs:78).
  • ScannedPlugin has no enabled field (plugins_manifest.rs:231-266) — a plugin dir in plugins/ loads, period ("Installing is copying the dir into plugins/: that copy is the plugin's first execution", plugins.md:87-89). The nearest things to curation are row-level lists scoped to one surface each: context_menu_rows for menu rows (config.rs:377-387, configuration.md:149-169), panel_rail_sections and left_rail_sections for rail sections (config.rs:337-376) — all global lists, none per profile, none an off switch.
  • The Plugins settings page renders declared setting rows, offered profiles, and permissions — values and cards only, no enable gesture (PluginGroup, plugins_manifest.rs:1617-1627; the page's source settings_rows, :1638-1680; the write path plugin_setting_write, app_shell.rs:7541-7592 — validate, store, push, never enable). The test fixtures' "enabled" booleans are plugin-declared setting rows in examples, not host machinery (plugins_manifest.rs:1869).
  • Consequence: "profile runs none" cannot mean "overrides a global pick". The None-follows-global convention would have nothing global to follow; the natural default is None = every plugin, which is today's behavior — the additive no-regression baseline every other field pattern starts from.

3. ProfileOffer runs the other direction — plugins contribute profiles; profiles do not select plugins​

  • ProfileOffer (plugins_manifest.rs:1714-1721) is "one offered profile as the Plugins page lists it": which plugin offers it, the declaration, and where it stands against the user's live profiles (Addable/Added/ UpdateAvailable/Refused, :1694-1709). A manifest's profiles[] declares shell profiles the plugin offers — "nothing more… nothing runs until you add it" (plugins.md:436-441); the accept gesture plans a write through the profile form's own planner (offer_plan, plugins_manifest.rs:1746-1753). So the plugin→profile edge is built (declaration, offer, accept, all pinned by tests at plugins_manifest.rs:4588-4626); the profile→plugin edge this record asks about does not exist.
  • The same asymmetry in the runtime: TimeoutFrame stamps which plugin is dispatching (ctx_plugin), never which profile its audience is.

4. The profile system: five override fields, one resolution rule, two apply points — one of them partly aspirational​

  • Profile is a named spawn preset: name, command, cwd, plus the five Option fields color_scheme, env, font_size, scrollback_lines, input_mode, each #[serde(default)] ("None (the default) follows the global X") (profile.rs:33-89). Profiles persist in their own section: ProfilesSection in profiles.ron with default_profile beside the list (config.rs:745-757, :292-300), loaded and live-reloaded per section (config.rs:692-714, file names store.rs:18-22).
  • The pure seams enforce the rule per field: effective_scheme_name, effective_font_size, effective_scrollback, effective_input_mode (profile.rs:140-183) — "the one rule every appearance consumer (spawn, the live config-apply pass) resolves through, so it can never fork" (profile.rs:127-129).
  • Spawn resolves the profile: PaneRequest::for_command finds the profile by the spawn's id (view.rs:3291-3294), resolves colors through effective_colors (view.rs:3299-3311, theme_glue.rs:47-67), and bakes per-profile font size and scrollback into PaneAppearance (view.rs:3313-3320); boot_pane applies the baked pair at terminal construction (view.rs:3391-3396). The tab records the profile id (tabs.rs:263-268), the session saves and re-resolves it at restore (session.rs:43-53, :75-78), and Switch Profile respawns a tab in place under a new profile (plan_respawn, tabs.rs:846-855; switch_tab_profile, app_shell.rs:5978). A set default_profile owns even the plain spawns (spawn.rs:46-58).
  • The live config-apply pass is the echo's stage/apply split: apply_config_reload re-reads the store, swaps the config, and stages theme, opacity, and font family (app_shell.rs:2789-2849); the tick's apply points push each to every pane — apply_pending_theme (:2950-2959), apply_pending_opacity (:2968-2976), apply_pending_font (:2986-3000) — each with one value resolved from the global config (resolve_theme resolves with profile: None, :359-379; pane_options reads the global keys, terminal/suggest.rs:749-790).
  • Doc-vs-code tension, flagged: the profile fields' docs say the appearance fields take effect "live" (configuration.md:380-381,383) and the draft's own comment says "a profile's running tabs take it when the written config echoes" (settings.rs:1826-1829), and the glue's doc says both application points consume the per-tab resolution (theme_glue.rs:35-37). The code's live pass resolves only the global and re-themes the whole fleet with it (app_shell.rs:2957-2958), and no caller re-resolves a pane's profile scheme or font size on the echo (after_config_swap is placement and menu notes only, app_shell.rs:~2770-2776). Statically, a per-profile tab's scheme/font re-reads its profile only at its next spawn. Whether a runtime recolor happens anyway is a walk row (COSMIC hardware), not claimable here — but any per-profile plugins work inherits exactly this gap if it wants live re-scoping, so the honest apply-timing contract for a new field is "next spawn", the scrollback_lines timing (configuration.md:382).
  • One profile seam is half-landed: effective_input_mode has its field, its seam, and its tests (profile.rs:88, :176-183, :404-431) but no runtime consumer — pane_options carries the global input_mode (terminal/suggest.rs:757-759), boot_pane overrides only spawned_program and font_size (view.rs:3391-3393), the profile form has no row for it (plugins.md:470-471), and the only readers outside tests are a Clone-draft seed (settings.rs:2072). Precedent to note, not to replicate.

5. Per capability: what per-profile gating would touch​

For every capability, the question is where its output surfaces, and whether that place already knows a tab:

CapabilityDispatch shapePer-tab filterable today?
Chips (tab decorations, dropterm.tab_chips)the shell gathers per-tab rows and asks the host (QueryTabChips { token, tabs: rows }); answers return per tab (TabChipValue)Yes, twice over. The ask rows already carry each tab's profile name (TabTitleAsk.profile, tabs.rs:580-590; the ask pass app_shell.rs:6379-6402) — the host could see the profile, or the shell could drop rows before the ask / skip answers at the apply
Tab titles (dropterm.tab_title)same ask/answer pair, per tab (TabTitleValue, tabs.rs:598-603; QueryTabTitles, app_shell.rs:6399-6402)Yes — identical seam
Terminal events (bell, title, child-exit, exit, focus)the shell's drain dispatches each with the tab id (HostCommand::Emit payloads, plugins.md:705-713; ctx_tab stamp, lua_host.rs:1960-1964)Yes — the shell knows the tab's profile (tab.profile, tabs.rs:263-268) at the send site; a gate is one filter before dispatch, no host change
Script commands (keybinds, palette, send_text)rows are app-global: manifest-declared merged over runtime, into the keybind registry as script/<name> (keybinds.rs:40, :123-131) and the palette's extras (palette_catalog, app_shell.rs:4333-4348); dispatch names the active tab (RunCommand { name, tab: id.0 }, app_shell.rs:4748-4749)Yes, with a dispatch gate — the chord fires globally but the run can refuse on the active tab's profile; palette rows can filter at compose (the catalog is composed at open, :4375-4377)
Context-menu rowscomposed per open from the manifests, filtered by the user's global context_menu_rows (menu_entries, app_shell.rs:5084-5094; the pick routes RunMenuCommand, :5206-5211)Yes — compose-time filter on the open's tab; the existing row list is the shape to extend
Panel views, rails, bands, output channelshost-owned chrome: bands are per-standing-band views the shell composes each frame (band.rs:3-12), rails are host containers gated by config keys (config.rs:325-376), channels outlive tabs entirely (app_shell.rs:7670-7676)No — structurally app-global. No tab in the shape; "per profile" would mean profile-switched chrome
Dialogs, styles, clipboard watch, state, settings valuesmodal over the surface; chrome-wide rules from launch (plugins_manifest.rs:239-241); a watch fed a global permitted set (app_shell.rs:1404-1409); stores keyed by plugin id alone (StoreValues, plugins_manifest.rs:1423)No — app-global seats; the store's key would need a profile dimension (see the recommendation)
Suggestions/completionsno plugin surface exists (builtin only; the survey verdict "completions stay builtin", terminal-plugin-systems.md:138-140)moot

6. No peer scopes extensions per profile — iTerm2 is the nearest, and it stops at per-profile component configuration​

The house survey covers ten terminals (terminal-plugin-systems.md) and none ships declarative per-profile extension enablement: WezTerm's Lua handlers receive pane/window context and could branch, but that is author code, not a profile field (terminal-plugin-systems.md:29-32); Hyper's hooks decorate app components globally (:69-71); Zellij's plugins are session panes with permission grants, not profile scopes (:44-48); kitty's kittens and socket passwords are command-scoped, not profile-scoped (:36-37). The nearest precedent is iTerm2: profiles own per-profile settings, and its extension surfaces hook into them — the title-provider hook is "selectable in Prefs > Profiles > General > Title" and custom status-bar components appear in "Prefs > Profiles > Session > Configure Status Bar" (terminal-plugin-systems.md:65, status-bar-capability.md:38-42). Even there the profile selects host components per profile; it does not switch the plugin runtime itself. A DropTerm profile field selecting which plugins' per-tab outputs reach its tabs would be first in the surveyed set — with iTerm2's per-profile-component settings page as the user-model precedent.

What DropTerm has today​

Plugin system. One LuaHost per process (app_shell.rs:937, :10713-10716): one dedicated thread, one mlua 5.4 interpreter (lua_host.rs:3-11), lazy-booted on the first pump's startup mark (app_shell.rs:1611-1617), hot-reloaded whole on any edit under plugins/ (lua_host.rs:49-56, app_shell.rs:10727-10732's watcher). Every scanned plugin loads; nothing can disable one (ScannedPlugin, plugins_manifest.rs:231-266; no config key, finding 2). Registration seats: the event bus, single-seat tab_title and tab_chips (replace-on-register, lua_host.rs:2318-2333), the command table, and panel_views (Generation, :2040-2053). Manifest-derived chrome registers app-global at boot and at every rescan: bands (BandSet::declared, app_shell.rs:1416), panels (registry.derive, :1427-1431), style rules (:1432-1435), script command rows (:1629-1630), and — on rescan — clipboard-watch audiences, output channels, and menu rows (rescan_manifests, :7654-7693). Settings values are one global map per plugin id pushed whole to the host (StoreValues, plugins_manifest.rs:1423; push_plugin_settings, app_shell.rs:7605-7610); state likewise (plugins-state.json, plugins_manifest.rs:78). The offline validator (PluginVerdict, plugins_check.rs:78-116) is authoring tooling; it never boots the app.

Profile system. Profile: name, command, cwd, five override fields (profile.rs:33-89), persisted in profiles.ron (ProfilesSection, config.rs:745-757). Resolution is override ?? global per field through the four effective_* seams (profile.rs:140-183), consumed at spawn (PaneRequest::for_command, view.rs:3273-3330; boot_pane, :3349-3424) and recorded on the tab for the session and the respawn paths (tabs.rs:263-268, session.rs:43-53). The settings UI writes profiles through the form draft (ProfileDraft, settings.rs:1817-1846 — the six raw fields plus env rows ProfileEnvRow, :1728-1733, with the inline error vocabulary :1708-1722) and the one write path every gesture takes (write_profile, app_shell.rs:5219-5227 — "the echo drives every apply"). The field convention, exactly: #[serde(default)] Option<T>, None inherits, an unknown or dangling name degrades silently, the store is never rewritten to fix one (profile.rs:47-51, :109-125).

The convention a plugins field would follow — with one twist forced by finding 2: there is no global plugin list for None to follow, so the field's None arm means every plugin (today's behavior, the additive baseline), and Some(list) scopes the profile's tabs to the listed plugins' per-tab outputs. The color_scheme pattern's degrade rule carries over: a listed id nothing declares is one quiet line, never an error, never a store rewrite.

The settings-isolation audit​

Mechanisms: spawn = read once at spawn (PaneRequest::for_command, view.rs:3273-3330); terminal-creation = fixed when the terminal is built (boot_pane, view.rs:3391-3396); live pass = the echo's stage/apply fleet-global push (app_shell.rs:2789-3000, per-pane arms view.rs:869-924); one-per-app = a single consumer with no tab in its shape. "Profile field" = the seam exists on Profile today.

SettingTodayPer-profile?Mechanism / citation
command, cwd, envper profile (Profile fields)alreadyspawn — profile.rs:36-42,54-68, spawn.rs:46-58
font_sizeper profilealreadyspawn — profile.rs:157-161, view.rs:3315, :3393
scrollback_linesper profilealreadyterminal-creation — profile.rs:166-170, view.rs:3316-3319, :3394-3396
color_scheme_dark/_light (via color_scheme)per profile (one name, both modes)alreadyspawn + the live pass (see finding 4's gap) — profile.rs:140-152, theme_glue.rs:47-67
input_modeper profile on paper only — field + seam + docs, no runtime consumer in the gpui buildalready (broken)the half-landed seam, finding 4 — profile.rs:176-183 vs terminal/suggest.rs:757-759
shell_integrationglobal, read once per spawnisolatable, smallspawn decides per spawn anyway (decide, view.rs:3287-3290; the timing note config.rs:560-568) — the spawn knows its profile
font_nameglobal; live pass is fleet-globalisolatable with plumbingthe per-pane arm exists (set_font_family, view.rs:900-907); the pass would resolve per pane's profile (app_shell.rs:2986-3000)
opacityglobal; live pass is fleet-globalisolatable with plumbingthe per-pane arm exists (set_opacity, view.rs:887-890); same one-line-per-pane resolution
bell_notification_enabled, command_finish_notification_enabled, command_finish_notification_after_secsglobal gates at the notify siteisolatable with plumbingthe site knows the tab; the latch is already per tab per hide period (configuration.md:284-286)
close_confirmation_enabledglobal, read at request timeisolatable with plumbing"the decision reads this key at request time" (config.rs:267-275) — the closing tab's profile is at hand
images_enabled, input_ghost, input_menu, input_auto_popup, input_descriptions, input_badges, input_icons, input_argument_hint, input_compact_rows, autosuggestions_paths_enabled, autosuggestions_commands_enabled, autosuggestions_history_context, autosuggestions_delay_msglobal keys riding every pane's optionsisolatable with plumbingthe options are per-pane and rebuilt live (pane_options, terminal/suggest.rs:749-790; apply_options, view.rs:909-924; drain_completions, app_shell.rs:3102-3111) — a profile would ride PaneRequest into the pane's stored options
autosuggestions_completions_extended, autosuggestions_aliasesglobal data-tier keysweak isolatablesame lane, but aliases are "author-sized, not toggle-sized" (config.rs:492-506) and the table is app-shared — profile-splitting the corpus is storage work, not a toggle
shell, args, new_tab_cwd, default_cwdglobal spawn defaultsredundanta profile's own command/cwd already owns this at spawn (spawn.rs:46-58)
height_percent, width_percent, h_align, edge, layer, keyboard_mode, respect_panel, outputthe one drop-down surface's geometry/layer contractapp-globalone surface reshaped whole (apply_config_reload's geometry intents, app_shell.rs:2850-2923)
hide_on_focus_loss, hotkeysummon/lifecycle behaviorapp-globalthe surface machine and the registrar (config.rs:215-232; the echo's hotkey arm app_shell.rs:2791-2800)
session_persistence_enabled, slide_animation_enabled, new_tab_after_current, hide_button_enabled, theme_preferenceapp behavior + chromeapp-globalone session file (config.rs:233-237); the transition machine (config.rs:238-241); strip behavior (config.rs:260-283); chrome-wide theme (app_shell.rs:2932-2943)
custom_key_bindsone keymapapp-globalthe keybinds section (config.rs:313-324) — the chord registry is the app's; per-profile binds would fork the keymap
panel_rail_enabled, panel_rail_sections, left_rail_enabled, left_rail_sections, context_menu_rowschrome gates + row listsapp-globalhost-owned containers (config.rs:325-387) — the lists curate what stands, not who sees it
onboarding_dismissed, gnome_extension_asked, onboarding_autocomplete_settled, onboarding_plugins_settledonce-per-install flagsapp-globalask-once state (config.rs:530-559)
profiles, default_profilethe profile store itselfnot applicablethe subject, not an isolatable (config.rs:288-306)
plugin loading, plugins-settings.json, plugins-state.jsonapp-global, no keyapp-global (the question of this record)findings 1-2

Count: 5 already per profile (one broken at runtime), 15 isolatable with new per-tab plumbing through seams that already exist per pane or per spawn, 25 structurally app-global, 4 redundant with the profile's own fields, plus the plugin system itself.

Recommendation​

Proposed: a plugins: Option<Vec<String>> field on Profile — audience scoping at the shell's existing dispatch points, the interpreter untouched.

  1. Schema draft. profiles.ron grows one additive field, the house shape (#[serde(default)], None = every plugin — today's behavior byte-identical; a pre-field profile loads unchanged, the pin style of profile.rs:299-307):

    // profiles.ron
    (
    profiles: [
    (
    name: "ops",
    command: "fish",
    plugins: Some(["paste-uptime", "selection-tools"]),
    ),
    (name: "top", command: "htop"), // no key: every plugin, today
    ],
    default_profile: None,
    )

    A listed id nothing declares costs one quiet line and degrades to omission — the unknown-scheme rule (profile.rs:528-544) verbatim. A symmetric global plugins key in DropTermConfig is not part of v1: there is no global enablement to override (finding 2), and adding a dead key would trip the docs gate for nothing (every_config_key_is_documented, config/tests.rs:1469-1479). If a global kill switch is ever wanted it is its own record.

  2. The gate, per capability (all shell-side; no host change, no new command): the tab record's profile id resolves the set once per dispatch —

    • chips and tab decorations: drop the tab's rows from the ask, or skip its answers at the apply (sync_tab_titles, app_shell.rs:6379-6402);
    • terminal events: skip the send when the event's tab's profile excludes the plugin (the drain's dispatch site);
    • script commands: RunCommand refuses on the active tab's profile; palette rows filter at palette_catalog compose (app_shell.rs:4333-4348); menu rows filter inside menu_entries (:5084-5094), the context_menu_rows list's own seat;
    • everything app-global (panels, bands, styles, dialogs, channels, clipboard watch, state, settings values): unscoped by definition — the docs must say so in one sentence, the trust-model way (plugins.md:288-300's plainness). If a later record wants the host itself to judge (a plugin asking dropterm.tabs verbs for excluded tabs, say), the mirror is ready: push_tabs_mirror's shape (app_shell.rs:7617-7626) gains a profile column — noted, not built.
  3. Settings UI. The profile form grows one multi-pick field: ProfileDraft gains the buffered Option<Vec<String>> and a ProfileField arm; the picker lists the scanned plugin ids — the same manifest list settings_rows already reads (plugins_manifest.rs:1638-1644) — with the per-profile field rule "empty = every plugin". Save flows through ProfileWrite and the one write path (app_shell.rs:5219-5227). The Plugins page itself stays untouched; the offered-profile cards (ProfileOffer) need no change — the two edges are independent.

  4. Apply timing, stated honestly. Next spawn, the scrollback_lines timing: a fresh or respawned tab reads the set in PaneRequest (one resolved field beside appearance), session restore re-resolves it with the profile (session.rs:43-53). Live re-scoping of running tabs inherits finding 4's gap — the live pass is fleet-global today — so v1 documents "next spawn", which is also what Switch Profile gives for free (tabs.rs:846-855): respawn under the profile, the scope lands.

  5. Docs. One row in configuration.md's profile field table (:375-385) — plugins, default unset = every plugin, next spawn — and a short paragraph in plugins.md ("a profile can scope which plugins' per-tab outputs its tabs see; app-wide surfaces stay app-wide"). The docs gate itself is unaffected: it serializes section defaults only, and ProfilesSection::default() carries an empty list, so Profile field keys are pinned by hand-kept documentation, not the test (config/tests.rs:1450-1479). The generated sample config and plugin-kit's manifest schema are untouched — this is a config-side field; plugins declare nothing new.

  6. Rejected alternatives, with grounds:

    • A host per profile (per-profile interpreters) — the answer to "profile runs none" as execution scoping. Rejected: the host's unit is one thread + one interpreter with whole-interpreter reload (lua_host.rs:49-56); N profiles mean N threads, N state/store files, N watchers, and the settings store's StoreValues schema forked per profile (plugins_manifest.rs:1423); no surveyed peer runs per-profile extension runtimes (finding 6); and the user-visible behavior — this tab shows no chips from plugin X — is fully served by the audience filter at a fraction of the machinery.
    • Load-gating on profile switch (unload/reload as profiles change) — the reload unit is the whole interpreter, so a switch tears down every plugin's registrations and state's in-memory half for every other profile's tabs; the hot-reload economics (lua_host.rs:49-56) exist precisely because partial reload is unsound. Rejected.
    • plugins as a DropTermConfig global key with profile override — convention-symmetric but content-free today: no global enablement exists to override (finding 2), and the key would sit in the docs-gated config table as a lie-by-default. Revisit only alongside a real global switch record.
    • Per-profile panels/bands/chrome ("this profile's tabs see a different rail") — structurally incoherent in one column: the rails, bands, and floating panels are host-owned chrome shared by the surface, not per-tab state (band.rs:3-12, config.rs:325-376). Rejected.
    • Making plugins a session-transient tab flag instead of a profile field — loses the persistence and the resolution seam that make profiles the preset layer (session.rs:48-53 re-resolves at restore); the tab record already carries the id, the profile carries the identity. Rejected.

Sources​

Repo sources at the pinned commit 25fddadf (branch dropterm4 working tree, clean), 2026-12-02:

  • dropterm/src/core/plugins_manifest.rs — the scan, the manifest vocabulary, PluginScan :341, PluginSettingRow :1605, PluginGroup :1617, ProfileOffer :1714, DeclaredProfile :333, StoreValues :1423, the store/state file names :73-78, Activation :183, ScannedPlugin :231-266, settings_rows :1638-1680, the offer machinery :1694-1759, embedded core-chips :43-68.
  • dropterm/src/core/plugins_check.rs — PluginVerdict :78-116, the offline check :121-128.
  • dropterm/src/core/lua_host.rs — the module contract :3-56, bounds :98-110, LuaHost :629-692, LuaHostHandle :960-978, ctx_tab/ctx_plugin :1960-2010, PluginStamp :2017-2026, Generation :2040-2053, the chips seat :2318-2333.
  • dropterm/src/core/config.rs — DropTermConfig :171-569, ProfilesSection :745-757, the section load/reload :684-714; dropterm/src/core/config/store.rs :18-22; the docs gate dropterm/src/core/config/tests.rs:1469-1479.
  • dropterm/src/core/profile.rs — the struct :33-89, the seams :140-183, the serde pins :296-431.
  • dropterm/src/core/tabs.rs — the tab's profile record :263-268, TabTitleAsk :572-590, TabTitleValue/TabChipValue/TabDecoration :592-663, plan_respawn :839-855; dropterm/src/core/spawn.rs:46-70; dropterm/src/core/session.rs:43-78.
  • dropterm/src/app_shell.rs — the host field :937, boot :1397-1435, plugins_boot_state :1602-1653, the config echo :2789-2924, the theme/opacity/font apply points :2932-3000, resolve_theme :359-379, write_session :3039-3095, drain_completions :3102-3111, palette_catalog :4317-4366, menu_entries :5084-5094, RunCommand/RunMenuCommand dispatch :4748-4749, :5206-5211, switch_tab_profile :5978, sync_tab_titles :6379-6403, plugin_setting_write :7541-7592, the pushes :7605-7648, rescan_manifests :7654-7693, the boot construction :10713-10732.
  • dropterm/src/terminal/view.rs — PaneRequest :3240-3331, boot_pane :3349-3424, the pane arms retheme/set_opacity/ set_font_family/apply_options :863-924; dropterm/src/terminal/suggest.rs:740-790 (pane_options).
  • dropterm/src/core/settings.rs — the profile form: ProfileFieldError :1708-1722, ProfileEnvRow :1728-1795, ProfileDraft :1817-1879; dropterm/src/core/keybinds.rs:38-131 (the script/ namespace and CommandRow); dropterm/src/cli.rs:128-152 (the plugin verbs); dropterm/src/band.rs:1-60 (the band view).
  • docs/docs/plugins.md — the capability table :45-66, install-is-copy :87-89, trust model :288-300, settings rows :414-434, profiles :436-471, runtime :673-698, events :699-719.
  • docs/docs/configuration.md — the store layout :10-16, the defaults table :46-96, the profiles section :349-390 (the field table :375-385), the menu/rail curation keys :141-249.
  • House records: docs/docs/research/terminal-plugin-systems.md (the peer plugin survey and the Lua-first verdict :115-129; iTerm2's per-profile hook selection :65; completions-stay-builtin :138-140), docs/docs/research/status-bar-capability.md (iTerm2's per-profile status components :38-42), docs/docs/research/plugin-authoring-and-creator-ux.md (the runtime facts as pinned 2026-11-26, :283-329), docs/docs/research/vscode-extension-lifecycle-rea.md (the profile-contrib status row, README decision log).

No web sources were fetched for this record; the peer-side claims cite the house records' pinned primary fetches of 2026-10-17 and 2026-11-21/26.

Unverified / open questions​

  • Live re-theme of per-profile tabs (finding 4): the static read says the gpui live pass applies one fleet-global resolution (app_shell.rs:2957-2958) and nothing re-resolves a pane's profile scheme/font on the echo, while configuration.md:380-381 and the draft comment (settings.rs:1826-1829) say "live". Whether a running profile-schemed tab recolors on a scheme edit on real COSMIC hardware is a walk row, not claimable headless. The same question bounds any per-profile plugins live re-scoping.
  • input_mode's per-profile seam at runtime: the field, seam, and tests exist; no runtime consumer does (finding 4). Whether the rich-input module plans to land the consumer (the comment "the per-profile resolution lands where the spawn knows its profile", terminal/suggest.rs:756-759, reads as a known deferral) was not traced to a spec or task file — the SPEC set is local working state, out of scope for a committed record.
  • Palette/menu compose-time filtering cost: the catalog composes at open and the menu at each open, so per-profile filtering there is cheap by construction, but the exact recomposition triggers (rescan vs echo vs every open) were pinned only for the palette (app_shell.rs:4375-4377); the menu's compose cadence was read from the docs (configuration.md:163-169), not walked.
  • Runtime walk rows (COSMIC hardware, not claimable here): that gating chips/titles at the ask or the apply degrades identically; that an event-gate on the drain's send costs no visible latency; that a plugins: Some([]) profile renders plugin-free chrome everywhere the user can see. The record's verdicts are static readings of the pinned tree.
  • Peer absence scope: "no peer ships per-profile extension enablement" is a survey negative over the ten terminals the house record covers plus the VS Code lifecycle records — VS Code's terminal profiles were not surveyed against extension enablement and may carry nuance; the claim is scoped to the surveyed set.