You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
afx send: attribute delivered composer messages to architect:<name>, not generic 'architect' #1479
When an afx send message is delivered into a builder's composer, it's framed with no sender name — a generic ### [ARCHITECT INSTRUCTION | …] ### header (formatArchitectMessage, utils/message-format.ts) — so the builder can't tell which architect sent it. Show architect:<name> in the delivered framing (e.g. ### [ARCHITECT:main INSTRUCTION | …] ###).
Two spots collapse the identity:
commands/send.ts:317 sets from = detectCurrentBuilderId() ?? 'architect' — the specific architect name is dropped at send time.
formatMessageForTarget → formatArchitectMessage (servers/tower-routes.ts:1524) ignores from entirely on the any → builder path, so even a correct from wouldn't surface.
Both need to carry the architect name through to the rendered header.
Why
A builder receiving an instruction should know who it's from — same as builder → architect messages already show ### [BUILDER <id> MESSAGE] ###. In a multi-architect workspace, "ARCHITECT INSTRUCTION" with no name is ambiguous, and it matters for the builder deciding whose direction it's acting on. The asymmetry (builder sends are attributed, architect sends aren't) is just an oversight in the formatter.
Notes
Shares the from = 'architect' root cause with the afx inbox display issue — the send-side half can be fixed once for both surfaces.
Thread the architect name through formatMessageForTarget into formatArchitectMessage (add an optional sender param) rather than only fixing from, since the any → builder branch currently discards it.
Keep the raw-mode path (raw: true) unattributed as today.
Consolidated into #1478 — same root cause (send.ts:317 collapses every architect sender to the literal 'architect'), and the composer-header half additionally needs formatMessageForTarget to stop discarding from on the any → builder path. #1478 now covers both surfaces in one PR; nothing from this issue is dropped.
Activity
mohidmakhdoomi commentedon Aug 17, 2026
Consolidated into #1478 — same root cause (
send.ts:317collapses every architect sender to the literal'architect'), and the composer-header half additionally needsformatMessageForTargetto stop discardingfromon the any → builder path. #1478 now covers both surfaces in one PR; nothing from this issue is dropped.[Air #1478] feat: carry architect:<name> to inbox + composer attribution