File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -159,7 +159,7 @@ export async function* handleStopHooks(
159159 toolUseContext . appendSystemMessage as ( ( msg : import ( '../types/message.js' ) . SystemMessage ) => void ) | undefined ,
160160 )
161161 }
162- if ( ! toolUseContext . agentId ) {
162+ if ( ! toolUseContext . agentId && ! poorMode ) {
163163 void executeAutoDream ( stopHookContext , toolUseContext . appendSystemMessage )
164164 }
165165 }
Original file line number Diff line number Diff line change 66
77import { writeFile } from 'fs/promises'
88import memoize from 'lodash-es/memoize.js'
9+ import { feature } from 'bun:bundle'
910import { getIsRemoteMode } from '../../bootstrap/state.js'
1011import { getSystemPrompt } from '../../constants/prompts.js'
1112import { getSystemContext , getUserContext } from '../../context.js'
@@ -280,6 +281,12 @@ const extractSessionMemory = sequential(async function (
280281 return
281282 }
282283
284+ // Poor mode: skip to reduce token consumption
285+ if ( feature ( 'POOR' ) ) {
286+ const { isPoorModeActive } = await import ( '../../commands/poor/poorMode.js' )
287+ if ( isPoorModeActive ( ) ) return
288+ }
289+
283290 // Check gate lazily when hook runs (cached, non-blocking)
284291 if ( ! isSessionMemoryGateEnabled ( ) ) {
285292 // Log gate failure once per session (ant-only)
You can’t perform that action at this time.
0 commit comments