Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/ccstatusline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ import {
preRenderAllWidgets,
renderStatusLine
} from './utils/renderer';
import { initScope } from './utils/scope';
import { advanceGlobalSeparatorIndex } from './utils/separator-index';
import { getSkillsMetrics } from './utils/skills';
import {
Expand Down Expand Up @@ -284,7 +285,8 @@ async function main() {
}

// Parse --config before anything else
initConfigPath(parseConfigArg());
const explicitConfigPath = parseConfigArg();
initConfigPath(explicitConfigPath);

// Handle --hook mode (cross-platform hook handler for widgets)
if (process.argv.includes('--hook')) {
Expand Down Expand Up @@ -318,6 +320,8 @@ async function main() {
}
} else {
// Interactive mode - run TUI
initScope({ explicitConfigPath, detectProject: true });

// Remove updatemessage before running TUI
const settings = await loadSettings();
if (settings.updatemessage) {
Expand Down
Loading