fix: resolve 7 council-validated PR violations
- Fix misleading background_wait instructions to show loop pattern with remaining_task_ids (race semantics, not block-all) - Fix wrong Gemini model string: gemini-3-pro-preview → gemini-3-pro - Add getMainSessionID() fallback when input.sessionID is undefined - Narrow .gitignore packages/ to only ignore built binaries - Fix contradictory config doc: non_interactive_members 'all' → 'custom' - Add athena-junior to keyword-detector exclusion check - Add .trim() before .toUpperCase() in resolveCouncilIntent - Update snapshots for model string change
This commit is contained in:
@@ -80,8 +80,9 @@ export function createToolExecuteBeforeHandler(args: {
|
||||
const toolNameLower = input.tool?.toLowerCase()
|
||||
|
||||
if (toolNameLower === "question" || toolNameLower === "askuserquestion" || toolNameLower === "ask_user_question" || toolNameLower === "switch_agent") {
|
||||
if (hasPendingCouncilMembers(input.sessionID)) {
|
||||
const sessionAgent = await resolveSessionAgent(ctx.client, input.sessionID)
|
||||
const sessionID = input.sessionID || getMainSessionID()
|
||||
if (sessionID && hasPendingCouncilMembers(sessionID)) {
|
||||
const sessionAgent = await resolveSessionAgent(ctx.client, sessionID)
|
||||
const sessionAgentKey = sessionAgent ? getAgentConfigKey(sessionAgent) : undefined
|
||||
|
||||
if (sessionAgentKey === "athena") {
|
||||
|
||||
Reference in New Issue
Block a user