Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 0 additions & 52 deletions bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions src/features/claude-code-session-state/state.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,8 @@ describe("claude-code-session-state", () => {
expect(getMainSessionID()).toBe(mainID)
})

test.skip("should return undefined when not set", () => {
// #given - not set
// TODO: Fix flaky test - parallel test execution causes state pollution
test("should return undefined when not set", () => {
// #given - not set (state is reset in beforeEach)
// #then
expect(getMainSessionID()).toBeUndefined()
})
Expand Down
13 changes: 7 additions & 6 deletions src/hooks/keyword-detector/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ describe("keyword-detector registers to ContextCollector", () => {
afterEach(() => {
logSpy?.mockRestore()
getMainSessionSpy?.mockRestore()
_resetForTesting()
})

function createMockPluginInput() {
Expand Down Expand Up @@ -97,7 +98,7 @@ describe("keyword-detector session filtering", () => {
let logSpy: ReturnType<typeof spyOn>

beforeEach(() => {
setMainSession(undefined)
_resetForTesting()
logCalls = []
logSpy = spyOn(sharedModule, "log").mockImplementation((msg: string, data?: unknown) => {
logCalls.push({ msg, data })
Expand All @@ -106,7 +107,7 @@ describe("keyword-detector session filtering", () => {

afterEach(() => {
logSpy?.mockRestore()
setMainSession(undefined)
_resetForTesting()
})

function createMockPluginInput(options: { toastCalls?: string[] } = {}) {
Expand Down Expand Up @@ -242,7 +243,7 @@ describe("keyword-detector word boundary", () => {
let logSpy: ReturnType<typeof spyOn>

beforeEach(() => {
setMainSession(undefined)
_resetForTesting()
logCalls = []
logSpy = spyOn(sharedModule, "log").mockImplementation((msg: string, data?: unknown) => {
logCalls.push({ msg, data })
Expand All @@ -251,7 +252,7 @@ describe("keyword-detector word boundary", () => {

afterEach(() => {
logSpy?.mockRestore()
setMainSession(undefined)
_resetForTesting()
})

function createMockPluginInput(options: { toastCalls?: string[] } = {}) {
Expand Down Expand Up @@ -339,7 +340,7 @@ describe("keyword-detector agent-specific ultrawork messages", () => {
let logSpy: ReturnType<typeof spyOn>

beforeEach(() => {
setMainSession(undefined)
_resetForTesting()
logCalls = []
logSpy = spyOn(sharedModule, "log").mockImplementation((msg: string, data?: unknown) => {
logCalls.push({ msg, data })
Expand All @@ -348,7 +349,7 @@ describe("keyword-detector agent-specific ultrawork messages", () => {

afterEach(() => {
logSpy?.mockRestore()
setMainSession(undefined)
_resetForTesting()
})

function createMockPluginInput() {
Expand Down