mirror of
https://github.com/Kilo-Org/kilocode.git
synced 2026-08-28 19:11:03 +08:00
2f7301368f
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.
37 lines
1.2 KiB
TypeScript
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",
|
|
])
|