[GH-ISSUE #7792] QoL: the State Editor's Fields view can't add or remove entries, and null values force you into JSON #4301

Closed
opened 2026-10-21 06:14:28 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @ylli-selmani on GitHub (Oct 18, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/7792

Originally assigned to: @ylli-selmani on GitHub.

What happens

The State Editor's Fields view can show the state, but it can't grow it:

  • A value the tracker left null (a conservative agent, or simply unknown yet) renders as No value. Set one in the JSON view. — dead text, no input. A Scene often looks like this:

    { "date": null, "time": null, "weather": null, "location": "Corridors of the White Wood Keep", "temperature": "Chilly", "worldCustomFields": [ … ] }
    

    So filling in the date means switching to JSON and hand-editing it.

  • A list of cards (characters, stats, custom fields, quests, inventory rows) has no + Add and no ×. Removing a character or a world custom field means switching to JSON.

The normal tracker panel already does all of this — Present Characters has + Add, a character card has + Add stat and + Add custom field, the toolbar has delete — so the two surfaces disagree about what "editing state" means.

Why it matters

The State Editor exists so a value can be found and fixed in one place (#7736, entry points extended in #7790). Needing JSON for one missing scene value, or for adding a stat, is the same friction in a new coat.

Proposal

No schema is needed, and none exists to fetch: the shapes are implicit in what each tracker writes. So:

  • Null leaf → a type chooser. Text / Number / On-off, writing "", 0 or false so the field becomes editable. Null stays the honest representation of "the agent didn't know", so a field can also be emptied again.
  • List → + Add. Appends an entry cloned from the last item's shape with values cleared, so it always matches what that tracker reads. Empty list starts from {} (or "" for a list of plain values).
  • List item → ×. Removes the row. Setting a row to null would leave a card the tracker then has to reconcile, so rows are removed, not nulled.
  • Object → + Add field. A key/value row, so an object isn't a dead end.

Out of scope: game mode. It edits through the Game Data Editor, which has its own UI and shapes, so it would be its own change.

  • #7736 (State Editor), #7790 (entry points: phone sheets, Agent Suite section).
Originally created by @ylli-selmani on GitHub (Oct 18, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/7792 Originally assigned to: @ylli-selmani on GitHub. ## What happens The State Editor's **Fields** view can show the state, but it can't grow it: - A value the tracker left **null** (a conservative agent, or simply unknown yet) renders as `No value. Set one in the JSON view.` — dead text, no input. A Scene often looks like this: ```json { "date": null, "time": null, "weather": null, "location": "Corridors of the White Wood Keep", "temperature": "Chilly", "worldCustomFields": [ … ] } ``` So filling in the date means switching to JSON and hand-editing it. - A **list of cards** (characters, stats, custom fields, quests, inventory rows) has no **+ Add** and no **×**. Removing a character or a world custom field means switching to JSON. The normal tracker panel already does all of this — Present Characters has **+ Add**, a character card has **+ Add stat** and **+ Add custom field**, the toolbar has delete — so the two surfaces disagree about what "editing state" means. ## Why it matters The State Editor exists so a value can be found and fixed in one place (#7736, entry points extended in #7790). Needing JSON for one missing scene value, or for adding a stat, is the same friction in a new coat. ## Proposal No schema is needed, and none exists to fetch: the shapes are implicit in what each tracker writes. So: - **Null leaf → a type chooser.** Text / Number / On-off, writing `""`, `0` or `false` so the field becomes editable. Null stays the honest representation of "the agent didn't know", so a field can also be emptied again. - **List → `+ Add`.** Appends an entry **cloned from the last item's shape with values cleared**, so it always matches what that tracker reads. Empty list starts from `{}` (or `""` for a list of plain values). - **List item → `×`.** Removes the row. Setting a row to `null` would leave a card the tracker then has to reconcile, so rows are removed, not nulled. - **Object → `+ Add field`.** A key/value row, so an object isn't a dead end. **Out of scope:** game mode. It edits through the Game Data Editor, which has its own UI and shapes, so it would be its own change. ## Related - #7736 (State Editor), #7790 (entry points: phone sheets, Agent Suite section).
bsakaguchi 2026-10-21 06:14:28 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#4301
No description provided.