1
0
Fork 0
polaris-task-force/src/lib
Z8MB1E 7adfcde72d fix(npc-dialogue): keep the conversation reachable when a branch attaches
Review findings, all in code this range introduced.

Attaching a branch to a node that already had a next step replaced that
hop, and "come back where it attached" pointed the branch back at the
caller, which loops: the caller then leads into the branch it just
returned from. Everything downstream was orphaned. The branch now
continues into the step that hop used to point at, so attaching inserts
in front of it instead of deleting it. Rejoining a condition is refused
outright, because re-entering re-evaluates the same flags and retakes the
same branch. Return candidates are limited to node types that read
`next`: a choice or condition open end would have received a hop no
walker follows.

The dialog says which of the three applies, and only offers the toggle
when a return exists, so an untouched default is not sent and reported
back as a refusal.

Condition true/false dots were drawn on the input handle: the hit-area
class sets left and right on the handle itself, which over-constrains
React Flow's `right: 0`, so both dots drifted to the card's left edge.
They now take the hit area as a child, like the other handles.

Refusals are honest: `connectHop` reports `changed: false` for a write it
did not make (it used to report true and return a new array), the editor
explains instead of rewriting an identical graph, and a refused
tail-drag keeps the original hop rather than deleting it first.

A passing connection test now really is invalidated when the
configuration changes. That ran in `afterChange`, whose return value is
only the operation's response, so the stored row kept showing a stale
pass while the test asserted the response. It moved to `beforeChange`,
counts only fields actually submitted (so the Test button's own result
write does not invalidate itself), and the test reads the row back.

Also: the fragment prompt no longer teaches `isStart: true` through the
worked example or asks for "the whole conversation" on retry; requests
carry a ten minute ceiling so an unreachable-but-accepting host cannot
hang Generate, Compose or the Test button; the API key description no
longer claims at-rest encryption, which does not exist; the per-dialogue
voice override gets the same dash and length cleaning as the global it
outranks; and the unused `describeAttachmentPoint` is gone, with the
attachment output now included in the hint the model receives.
2026-11-24 14:47:08 -05:00
..
ai fix(npc-dialogue): keep the conversation reachable when a branch attaches 2026-11-24 14:47:08 -05:00
analytics docs(analytics): add event taxonomy README and analytics domain guide 2026-10-14 12:13:01 -04:00
announcements docs(agents): split domain guidance into nested AGENTS.md files 2026-10-09 15:46:36 -04:00
arma-bridge feat(lockers): seed and unlimited-stock sync for limited arsenal 2026-11-20 19:52:15 -05:00
arma-import feat(arma): dedupe vehicle templates by name and mod with cleanup CLI 2026-10-22 13:18:11 -04:00
arma-markers feat(map-objectives): superuser-authored strategic objectives on mission maps 2026-10-27 02:12:31 -04:00
attendance feat(missions): role sign-ups with FCFS waitlist and rich-text role descriptions 2026-09-30 14:50:26 -04:00
awards feat(awards): brass-emboss ribbon devices, swap arrow for valor V 2026-10-27 01:47:10 -04:00
banking docs(agents): split domain guidance into nested AGENTS.md files 2026-10-09 15:46:36 -04:00
base feat(interior): upgrade completion, tech/labor gates, and module bonuses 2026-10-20 15:44:36 -04:00
client-analytics docs(analytics): add event taxonomy README and analytics domain guide 2026-10-14 12:13:01 -04:00
command-chain feat(missions): add command chain editor and MissionCommandLinks collection 2026-11-02 09:59:55 -05:00
contributions perf: cut queries per render and refreshes per realtime event 2026-11-22 22:39:10 -05:00
dashboard feat(dashboard): customizable dashboard with personal widgets 2026-09-10 20:03:27 -04:00
economy feat(event-log): hide routine tick events behind a toggle 2026-10-19 20:03:51 -04:00
evaluations feat(evaluations): allow equal-rank command-link reviews via mission chain 2026-11-02 10:00:02 -05:00
garage feat(garage): add vehicle bay schema fields, geometry helpers, and backfill 2026-10-13 16:02:58 -04:00
intelligence feat(intelligence): add attendance-gated feature unlocks to mission pages 2026-11-21 02:30:48 -05:00
interior docs: add superstructure interior domain guide and index entry 2026-10-20 20:08:25 -04:00
journals feat(journals): hint when a draft will earn XP 2026-10-13 15:20:59 -04:00
lexical fix(rich-text): render full lexical formatting incl. colours across all fields 2026-11-18 13:10:26 -05:00
locker chore(locker): commit pending stock handling refinements 2026-10-25 21:23:40 -04:00
map feat(map-objectives): superuser-authored strategic objectives on mission maps 2026-10-27 02:12:31 -04:00
market docs(agents): split domain guidance into nested AGENTS.md files 2026-10-09 15:46:36 -04:00
minigames perf: cut queries per render and refreshes per realtime event 2026-11-22 22:39:10 -05:00
missionRatings fix(mission-ratings): block mission authors from rating their own mission 2026-11-01 15:21:53 -05:00
notifications perf: cut queries per render and refreshes per realtime event 2026-11-22 22:39:10 -05:00
npc-dialogue fix(npc-dialogue): keep the conversation reachable when a branch attaches 2026-11-24 14:47:08 -05:00
npcs feat(npc): add weighted activity, level, and dialogue conversations 2026-10-05 12:51:59 -04:00
operations feat(operations): gate logistics extractions behind an officer review screen 2026-10-26 22:20:14 -04:00
profile feat(profile): add rich-text dossier excerpt editors 2026-09-06 05:32:23 -04:00
projects feat(projects): enforce permissions and improve search 2026-08-21 00:26:33 -04:00
promotions feat(promotions): add promotion nominations and leadership transfers 2026-10-03 03:29:24 -04:00
realtime perf: cut queries per render and refreshes per realtime event 2026-11-22 22:39:10 -05:00
respawn-tickets feat(respawn-tickets): settle attendance-based respawn tickets per mission 2026-09-14 15:37:05 -04:00
session feat(session): add pre-expiry warning banner with extend button 2026-09-23 15:02:10 -04:00
shims feat(shims): add targeted client-side injections 2026-08-26 00:53:31 -04:00
shipping feat(vehicles): add per-vehicle disallowed-cargo blacklist enforced at shipment 2026-10-26 22:17:21 -04:00
sidebar feat(sidebar): pin Platform section to top during reorder 2026-10-12 14:02:21 -04:00
story chore(chronicle): rename Story Beats to Chronicle Entries 2026-10-09 13:48:14 -04:00
surveys feat(contributions): add crowdsourced XP reward system 2026-10-09 16:30:05 -04:00
tech feat(tech): member-facing tech research system and tech tree 2026-10-19 17:28:26 -04:00
tech-tree feat(tech-tree): add note nodes with optional frontend visibility 2026-11-23 03:11:36 -05:00
tickets feat(tickets): allow staff to archive tickets, hiding them from the front-end 2026-10-07 01:22:51 -04:00
tours feat(wiki): redesign index with URL-shared filters, category portals, featured strip 2026-10-09 17:56:09 -04:00
transfers feat(promotions): add promotion nominations and leadership transfers 2026-10-03 03:29:24 -04:00
vehicles feat(logistics): restyle vehicle catalog cards in tactical dossier style 2026-10-26 22:20:54 -04:00
voiceover fix(voiceover): scope script submission counts per script 2026-10-09 13:13:19 -04:00
wiki feat(wiki): replace textarea overlay with a CodeMirror markdown editor 2026-11-18 15:12:22 -05:00
AGENTS.md refactor(intelligence): drop the factions.relationships array in favour of the ledger 2026-11-18 14:13:29 -05:00
config-cache.ts perf: cut queries per render and refreshes per realtime event 2026-11-22 22:39:10 -05:00
distance.ts feat(logistics): add shipments collection with dispatch, transit, and arrival processing 2026-08-02 02:03:50 -04:00
flow-edge-routing.ts refactor(flow): share the edge shape builder between both flow canvases 2026-10-06 14:47:14 -04:00
impersonation.ts feat(impersonation): implement user impersonation functionality and UI 2026-08-21 01:41:14 -04:00
logistics.ts feat(logistics): timestamp shipment lifecycle with client relay 2026-09-20 02:43:29 -04:00
modlistPreset.ts fix(missions): only accept Arma 3 Launcher preset exports as mod lists 2026-10-08 13:25:08 -04:00
redaction.ts feat(missions): add redacted objective toggle 2026-08-25 12:27:52 -04:00
shipping.ts feat(map): road-network routing for shipments with transport modes 2026-09-16 23:14:01 -04:00
storageRules.ts style: remove em-dashes from user-visible prose (wave 1) 2026-09-07 01:34:28 -04:00
utils.ts style(ui): format shadcn/ui primitives and utility hooks 2026-08-16 23:27:51 -04:00
versionInfo.ts feat(version): add build metadata fields 2026-08-27 18:36:11 -04:00