Files
kilocode/packages/kilo-vscode/src/agent-manager/project/state-gate.ts
T
marius-kilocode 2f7301368f feat(agent-manager): replace sessions list with a per-project history button
Move the per-project SESSIONS list out of the Agent Manager sidebar and
behind a per-project history button that opens the sessions view scoped to
that project. Each session row offers direct actions to resume it in a new
worktree or in the project's local tabs, and sessions are no longer part of
the sidebar keyboard navigation order.
2026-08-25 10:37:37 +02:00

37 lines
1.2 KiB
TypeScript

/**
* Messages that mutate or read a project's persisted state and therefore must
* wait for that project's state to load before dispatch.
*/
export const STATE_GATED = new Set<string>([
"agentManager.createWorktree",
"agentManager.promoteSession",
"agentManager.createMultiVersion",
"agentManager.deleteWorktree",
"agentManager.removeStaleWorktree",
"agentManager.openLocally",
"agentManager.openSessionLocally",
"agentManager.addSessionToWorktree",
"agentManager.closeSession",
"agentManager.persistSession",
"agentManager.forgetSession",
"agentManager.renameWorktree",
"agentManager.requestBranches",
"agentManager.importFromBranch",
"agentManager.importFromPR",
"agentManager.importExternalWorktree",
"agentManager.importAllExternalWorktrees",
"agentManager.setTabOrder",
"agentManager.setWorktreeOrder",
"agentManager.setSessionsCollapsed",
"agentManager.setSidebarCollapsed",
"agentManager.setReviewDiffStyle",
"agentManager.setDefaultBaseBranch",
"agentManager.createSection",
"agentManager.renameSection",
"agentManager.deleteSection",
"agentManager.setSectionColor",
"agentManager.toggleSectionCollapsed",
"agentManager.moveToSection",
"agentManager.moveSection",
])