Skip to content

Add Send and assign: long-press Send to file the issue assigned - #7

Merged
artifact-agent merged 1 commit into
mainfrom
send-and-assign
Nov 29, 2026
Merged

artifact-agent merged 1 commit into
mainfrom
send-and-assign

Conversation

@artifact-agent

Copy link
Copy Markdown
Contributor

A sender who is signed in and can push to the product's repo can long-press Send to file the issue already assigned, so the issue agent picks it up without a separate assignment. Asked for by Nicholas in Discord #a-feedback.

Changes

  • Holding Send for 500 ms, right-clicking it or pressing the context-menu key opens a menu with Send and "Send and assign to @login". A tap still sends. FeedbackKit's confirm step offers the same two through a long-press context menu.
  • The menu appears only when the relay names an assignee and whoami says the sender can push. The sender row says "Hold Send to assign it."
  • New assignee setting, resolved per product, then from ORG_DEFAULTS.<owner>, with no built-in default; a value that isn't a GitHub login is dropped. GET /v1/settings returns it. wrangler.jsonc sets ORG_DEFAULTS.arfct.assignee to artifact-agent.
  • assign=1 on POST /v1/reports files the issue with the sender's token and that assignee. The relay never assigns with its own token: an anonymous sender gets 403 assign_needs_sign_in, one without push access gets 403 assign_needs_write, and a failed sender filing doesn't fall back to the relay's account. The issue agent ignores assignments made by that account, which is the reason.
  • The receipt carries assignee and assigned. GitHub files the issue even when it drops an assignee it can't assign, so the sent view says either "Sent and assigned to @login." or "GitHub didn't assign @login."
  • README and the deployment guide document the setting.

Verified

  • npm test: 119 tests pass, 6 of them new for Send and assign (assigned, dropped assignee, anonymous, no push access, no fallback to the relay token, setting resolution). Typecheck and lint pass.
  • swift test in apple/FeedbackKit: 47 tests pass, including the assign form field and the settings and receipt fields. The package builds for the iOS Simulator.
  • The built web sheet against a stub relay on Magritte, with a mouse: holding Send opened the menu, Send and assign sent assign=1 and showed "Sent and assigned to @artifact-agent.", and a short press sent without it.

Not verified

  • No issue was filed and assigned on GitHub itself.
  • The long press with a touch on a phone; only a mouse press was driven.
  • FeedbackKit's context menu was built, not run.

After merge

  • Deploy the relay; until then feedback.artifact.com returns no assignee and the menu stays hidden.
  • Copy the change to arfct/feedback-private, which deploys the same Worker config.

A sender who is signed in and can push to the product's repo can
long-press Send (right-click or the context-menu key on a desktop) to
open a menu with Send and "Send and assign to @login". The login comes
from a new `assignee` setting, resolved per product, then from
ORG_DEFAULTS. Artifact's relay sets arfct's assignee to artifact-agent,
so the issue agent picks the issue up.

The relay files an assigned issue only with the sender's token, never
its own: an anonymous sender or one without push access gets 403 and
nothing is filed, and a refused filing doesn't fall back to the relay's
account. The receipt says whether GitHub kept the assignee.

The web sheet and FeedbackKit's confirm step both get the menu.
@artifact-agent
artifact-agent merged commit d1d64e9 into main Nov 29, 2026
2 checks passed
@artifact-agent
artifact-agent deleted the send-and-assign branch November 29, 2026 06:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant