Skip to content

armgit / ruflo

Public Imported from GitHub
0

🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated

Checkpoint: File edits

rUvf7ee17eae58a
diff --git a/v3/@claude-flow/cli/.claude/helpers/statusline.cjs b/v3/@claude-flow/cli/.claude/helpers/statusline.cjs
index b33f484491..bea749b929 100644
--- a/v3/@claude-flow/cli/.claude/helpers/statusline.cjs
+++ b/v3/@claude-flow/cli/.claude/helpers/statusline.cjs
@@ -66,8 +66,18 @@ function getUserInfo() {
const claudeConfigPath = path.join(homedir, '.claude.json');
if (fs.existsSync(claudeConfigPath)) {
const claudeConfig = JSON.parse(fs.readFileSync(claudeConfigPath, 'utf-8'));
- // Get model from lastModelUsage (most recent model used)
- const lastModelUsage = claudeConfig.projects?.[process.cwd()]?.lastModelUsage || claudeConfig.lastModelUsage;
+ // Try to find lastModelUsage - check current dir and parent dirs
+ let lastModelUsage = null;
+ const cwd = process.cwd();
+ if (claudeConfig.projects) {
+ // Try exact match first, then check if cwd starts with any project path
+ for (const [projectPath, projectConfig] of Object.entries(claudeConfig.projects)) {
+ if (cwd === projectPath || cwd.startsWith(projectPath + '/')) {
+ lastModelUsage = projectConfig.lastModelUsage;
+ break;
+ }
+ }
+ }
if (lastModelUsage) {
const modelIds = Object.keys(lastModelUsage);
if (modelIds.length > 0) {