Skip to content

Commit fe6a029

Browse files
committed
fix: allow user mentions from agent comments in orchestrator
1 parent d4e1c25 commit fe6a029

1 file changed

Lines changed: 11 additions & 3 deletions

File tree

.github/workflows/orchestrator.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ jobs:
8585
github.event.issue.state == 'open' &&
8686
github.event.comment.user.type != 'Bot' &&
8787
!contains(fromJson('["moderator","reviewer_a","reviewer_b","summarizer","observer","pubmed_observer","arxiv_observer","video_manim"]'), github.event.comment.user.login) &&
88-
!contains(github.event.comment.body, '[Agent:') &&
8988
(contains(github.event.comment.body, '相关人员:') || contains(github.event.comment.body, '协作请求:'))
9089
runs-on: ubuntu-latest
9190
timeout-minutes: 5
@@ -118,6 +117,7 @@ jobs:
118117
from issuelab.utils.mentions import extract_controlled_mentions
119118
120119
comment = os.environ.get("COMMENT_BODY", "")
120+
is_agent_comment = "[Agent:" in comment
121121
registry = load_registry(Path("agents"))
122122
system_agents: set[str] = set()
123123
user_agents: set[str] = set()
@@ -135,7 +135,9 @@ jobs:
135135
found_user: list[str] = []
136136
for mention in extract_controlled_mentions(comment):
137137
candidate = mention.lower()
138-
if candidate in system_agents and candidate not in found_system:
138+
# agent 评论不再触发 system agents,避免递归链路;
139+
# 但允许触发 user agents(如 @gqy20)。
140+
if (not is_agent_comment) and candidate in system_agents and candidate not in found_system:
139141
found_system.append(candidate)
140142
if candidate in user_agents and candidate not in found_user:
141143
found_user.append(candidate)
@@ -614,7 +616,13 @@ jobs:
614616
retention-days: 7
615617

616618
observability-summary:
617-
if: always()
619+
if: |
620+
always() &&
621+
(
622+
needs.auto-trigger-review.result != 'skipped' ||
623+
needs.detect-mentions.result != 'skipped' ||
624+
needs.process-command.result != 'skipped'
625+
)
618626
needs:
619627
- auto-trigger-review
620628
- detect-mentions

0 commit comments

Comments
 (0)