MCPcopy Create free account
hub / github.com/xerrors/Yuxi / shouldAutoOpenAgentPanel

Function shouldAutoOpenAgentPanel

web/src/utils/agentPanelAutoOpen.js:12–16  ·  view source on GitHub ↗
(threadFiles)

Source from the content-addressed store, hash-verified

10}
11
12export const shouldAutoOpenAgentPanel = (threadFiles) => {
13 if (!Array.isArray(threadFiles) || threadFiles.length === 0) return false
14
15 return threadFiles.some((item) => item?.is_dir !== true && isTrackedPanelFilePath(item?.path))
16}
17
18export { USER_DATA_OUTPUTS_PREFIX, USER_DATA_UPLOADS_PREFIX }

Callers

nothing calls this directly

Calls 1

isTrackedPanelFilePathFunction · 0.85

Tested by

no test coverage detected