Files
gemini-cli/packages/cli
Sandy Tao 5570b1c046 feat(core): enhance hook system with PreCompress replacement and Idle event
PreCompress hooks can now return newHistory to replace built-in compression.
Add Idle hook event that fires after configurable inactivity period.

- PreCompress: accept history in hook input, return newHistory to skip
  built-in summarization (CompressionStatus.HOOK_REPLACED)
- Idle: new HookEventName with fireIdleEvent, auto-activates when
  extensions register Idle hooks (default 300s, configurable via
  hooksConfig.idleTimeout)
- Hook can return hookSpecificOutput.prompt to auto-submit a message
2026-03-09 10:35:56 -07:00
..
2026-02-24 09:43:22 +00:00