Skip to content

Commit 7ea69ca

Browse files
fix: 修复 build 过程中的问题
1 parent 4e82fb5 commit 7ea69ca

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/main.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4248,11 +4248,12 @@ async function run(): Promise<CommanderCommand> {
42484248
});
42494249
}
42504250

4251+
const teammateUtils = getTeammateUtils();
42514252
const effectiveToolPermissionContext = {
42524253
...toolPermissionContext,
42534254
mode:
42544255
isAgentSwarmsEnabled() &&
4255-
getTeammateUtils().isPlanModeRequired()
4256+
teammateUtils?.isPlanModeRequired?.()
42564257
? ("plan" as const)
42574258
: toolPermissionContext.mode,
42584259
};

0 commit comments

Comments
 (0)