cnb: rewrite lead nudge — no excuses, always have work - #262
Conversation
Old nudge said "scan team and dispatch next issue" — gave lead an exit if team was "saturated", letting lead idle while 50+ open issues pile up. lead would also blame "waiting for user admin merge" as a bottleneck, but this is lead's own project with no user fallback. New nudge: - "this is your project, no user safety net" - workers busy → lead still has: PR review, stale issue cleanup, roadmap, doc integration, norm review - workers idle → dispatch immediately - explicitly forbid "no work" / "waiting for approval" / "external bottleneck" excuses Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 3e72badcb5
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| sess, | ||
| "lead 不能 idle。扫描团队状态:谁空闲、谁阻塞、PR queue、master CI、open issues。" | ||
| "主动给空闲员工派下一个 issue,不要等他们汇报。", | ||
| "lead 不能 idle。这是你的项目,没有用户兜底。" |
There was a problem hiding this comment.
Keep the queued-nudge marker in the prompt
When a lead idle nudge is already typed/queued in the pane, _already_queued(sess, "扫描团队") still relies on the old prompt text, but this rewritten message no longer contains that marker. In the mid-thinking/queued-input scenario this helper is meant to prevent, the 3-second lead cooldown expires and _try_lead_idle can paste another copy of this long prompt repeatedly; update the marker to a stable substring from the new text or include the old marker.
Useful? React with 👍 / 👎.
Old nudge gave lead exits ('team saturated', 'waiting for user'). New nudge enumerates non-dispatch work and forbids excuses.