Skip to content
Open
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
2 changes: 2 additions & 0 deletions lua/sidekick/cli/state.lua
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ local M = {}
---@field cwd? boolean
---@field external? boolean
---@field installed? boolean
---@field kind? "session" | "tool"
---@field name? string
---@field session? string
---@field started? boolean
Expand All @@ -39,6 +40,7 @@ function M.is(t, filter)
and (filter.cwd == nil or (t.session and t.session.cwd == Session.cwd()))
and (filter.external == nil or filter.external == t.external)
and (filter.installed == nil or filter.installed == t.installed)
and (filter.kind == nil or (filter.kind == "session" and t.session ~= nil) or (filter.kind == "tool" and t.session == nil))
and (filter.name == nil or filter.name == t.tool.name)
and (filter.session == nil or (t.session and t.session.id == filter.session))
and (filter.started == nil or filter.started == t.started)
Expand Down
Loading