Skip to content

[BUG] NPC / Location / PC Tag Updates Not Working #21

@OneShoeBoy

Description

@OneShoeBoy

Description

When updating a previously defined persistent element (such as an NPC, PC, or Location) a second interation is created and the new tags are appended to the entity in the UI.

Steps to Reproduce

  1. Declare an NPC/PC/Location
  2. Later in the same note, perform an entity update on that previously declared entity

Expected Behavior

UI should update as per the spec (excerpt below) when tags are updated for a specific entity. If an entity is referenced using # e.g. [#N:myNPC] then the tags should not update.

When an NPC's status changes, you can either:

  • Restate with new tags: [N:Jonah|captured|wounded]
  • Show just the change: [N:Jonah|captured] (assumes other tags persist)
  • Use explicit updates: [N:Jonah|friendly→hostile]
  • Add + or -: [N:Jonah|+captured] or [N:Jonah|-wounded]_

See NPCs for the above reference, and Reference Tags for the # referencing.

Actual Behavior

In the UI when the entity is updated, the Story elements UI will append the new tags to the entity without deleting the old ones, and increase the count of the entity (display an x2).

Environment

  • OS: Windows 25H2 (OS Build 26200.8328)
  • Obsidian Version: 1.12.7
  • Python version: N/A
  • lonelog version: latest

Additional Context

I've tested and confirmed the tags aren't updating as expected for Location, NPC, and PC tags - Events and Threads seem to be working as expected, but I haven't thoroughly tested those!

Screenshots

  1. Story elements UI
Image
  1. PC / NPC declaration and update
Image

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions