fix: restore poor mode stubs (CCP-specific, prevents build failure)

This commit is contained in:
James Feng 2026-06-04 12:36:19 +08:00
parent 39a3ff8d7a
commit 23ea5a67d3
2 changed files with 5 additions and 4 deletions

View File

@ -7,7 +7,8 @@ import { getIsNonInteractiveSession } from '../bootstrap/state.js'
import { getCurrentWorktreeSession } from '../utils/worktree.js'
import { getSessionStartDate } from './common.js'
import { getInitialSettings } from '../utils/settings/settings.js'
import { isPoorModeActive } from '../commands/poor/poorMode.js'
// Stub: poor mode removed from CCP
const isPoorModeActive = () => false
import {
AGENT_TOOL_NAME,
VERIFICATION_AGENT_TYPE,

View File

@ -281,10 +281,10 @@ const extractSessionMemory = sequential(async function (
return
}
// Poor mode: skip to reduce token consumption
// Poor mode: skip to reduce token consumption (stubbed — poor mode removed from CCP)
if (feature('POOR')) {
const { isPoorModeActive } = await import('../../commands/poor/poorMode.js')
if (isPoorModeActive()) return
// isPoorModeActive stub — poor/poorMode.js not present in CCP
return
}
// Check gate lazily when hook runs (cached, non-blocking)