Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DetectCurrentProfile ¶
func DetectCurrentProfile() string
DetectCurrentProfile returns the active agent-deck profile for the current process environment.
As of issue #881, profile resolution lives in session.GetEffectiveProfile — every consumer (TUI, web /api/sessions, storage, push, costs) routes through that single function so TUI and web cannot disagree on which profile is active. This helper is preserved for callers that previously imported the profile package; new code should call session.GetEffectiveProfile("") directly.
Resolution priority (defined in session.GetEffectiveProfile):
- AGENTDECK_PROFILE environment variable
- CLAUDE_CONFIG_DIR environment variable (e.g. ~/.claude-work -> "work")
- config.json default_profile
- "default"
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.