feat(forgejo): let conversation sessions relabel their own issue #242
No reviewers
Labels
No labels
Agent
Ignore
Agent
In Progress
Agent
Planned
Agent
Planning
Agent
Ready
Agent
Triage
Compat
Breaking
Kind
Bug
Kind
Documentation
Kind
Enhancement
Kind
Feature
Kind
Security
Kind
Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
lucas/omp-deck!242
Loading…
Reference in a new issue
No description provided.
Delete branch "agent/issue-241-conversation-labels"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Gives every
forgejo_conversationsession (@mention turns and triage turns alike)forgejo_update_issue_labels, scoped to the issue or PR the session is about, with the repository's automation-steering labels off limits.What changed
CONVERSATION_TOOL_NAMESgainsforgejo_update_issue_labels; the no-checkout variant inherits it (labeling needs no checkout). The CI watchdog filter excludes it, so its "You cannot change code, branches, labels or issue state" prompt stays true.forgejoConversationPolicy.decideis nowasyncand uses theapi/signalparameters it previously dropped. The tool is"allow"ed (not"default") so the mutating-tool default ask does not become an unattended denial; user deny rules still win, sincePermissionFilterchecks them first.numberother than the session's, and any added/removed label matching (undersameLabel)Status/Blocked,issue_handler.label, the threeimplementationlabels,review.label/exclude_labelsor the CI-watchdog others-PRs label/excludes from.omp/forgejo.yaml. The config is read live per call (as everywhere else in the dispatcher) so edits apply without a restart. When it cannot be read or parsed, the fallback protectsStatus/Blockedand theagent/namespace and allows everything else.BLOCKED_LABELmoved fromdispatcher.tstorepo-config.ts;session-policy.tsimportingdispatcher.tswould be a cycle,repo-config.tsis cycle-free.docs/configuration.mddescribe the new, narrower capability.The built-in triage task text in
conversation-detect.tsis deliberately unchanged: the default steering stays passive, and a repository opts into labeling viaissue_handler.prompt, which replaces that text.Verification
bun test apps/server/src/bridge/session-policy.test.ts apps/server/src/forgejo/dispatcher.test.ts— 208 pass, 0 fail, including the new cases (own-number-only, configured automation labels incl.needs triage↔needs-triagenormalization,Status/Blockedwith a label-less config, unreadable-config fallback whereagentic-uxis allowed butagent/anythingis not, andagent/not applying when the config was read).bun run typecheck— clean.Closes: #241