feat: add agent fallback and preemptive-compaction restoration
- Add agent visibility fallback for first-run scenarios - Restore preemptive-compaction hook - Update migration and schema for preemptive-compaction restoration
This commit is contained in:
@@ -280,10 +280,9 @@ describe("migrateHookNames", () => {
|
||||
|
||||
// then: Removed hooks should be filtered out
|
||||
expect(changed).toBe(true)
|
||||
expect(migrated).toEqual(["comment-checker"])
|
||||
expect(removed).toContain("preemptive-compaction")
|
||||
expect(migrated).toEqual(["preemptive-compaction", "comment-checker"])
|
||||
expect(removed).toContain("empty-message-sanitizer")
|
||||
expect(removed).toHaveLength(2)
|
||||
expect(removed).toHaveLength(1)
|
||||
})
|
||||
|
||||
test("handles mixed migration and removal", () => {
|
||||
@@ -297,8 +296,8 @@ describe("migrateHookNames", () => {
|
||||
expect(changed).toBe(true)
|
||||
expect(migrated).toContain("anthropic-context-window-limit-recovery")
|
||||
expect(migrated).toContain("atlas")
|
||||
expect(migrated).not.toContain("preemptive-compaction")
|
||||
expect(removed).toEqual(["preemptive-compaction"])
|
||||
expect(migrated).toContain("preemptive-compaction")
|
||||
expect(removed).toEqual([])
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
@@ -64,7 +64,6 @@ export const HOOK_NAME_MAP: Record<string, string | null> = {
|
||||
"sisyphus-orchestrator": "atlas",
|
||||
|
||||
// Removed hooks (v3.0.0) - will be filtered out and user warned
|
||||
"preemptive-compaction": null,
|
||||
"empty-message-sanitizer": null,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user