refactor(plugin): remove metadata assertions
Guard optional plugin metadata and pane identifiers before passing them to cleanup and warning paths. Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
@@ -103,8 +103,11 @@ export async function deleteTeam(
|
||||
const removedLayout = config.tmux_visualization && tmuxMgr !== undefined && deps.canVisualize()
|
||||
if (removedLayout) {
|
||||
const memberPaneIds = runtimeState.members
|
||||
.filter((member) => member.agentType !== "leader" && member.tmuxPaneId)
|
||||
.map((member) => member.tmuxPaneId!)
|
||||
.flatMap((member) => (
|
||||
member.agentType !== "leader" && member.tmuxPaneId
|
||||
? [member.tmuxPaneId]
|
||||
: []
|
||||
))
|
||||
|
||||
const cleanupTarget = runtimeState.tmuxLayout
|
||||
? {
|
||||
|
||||
Reference in New Issue
Block a user