Repository navigation
Description
Problem
table-view.svelte derives its columns from schema.fields with no protection filter, so protection: "system" fields render as user-facing columns.
Visible on person, which shows a "Possible duplicate" column — a local_only, system-managed convergence marker whose own schema description says "Never written directly; see NodeService::mark_possible_duplicates". It is internal logic, not data anyone enters, and on a local-only install it is permanently empty by construction.
The detail view already gets this right
generic-schema-form.svelte:51:
const visibleFields = $derived(schema.fields.filter((f) => f.protection !== 'system'));Its comment even names this exact field:
protection: 'system'fields (e.g. person's_possible_duplicate, never …)
So the two views disagree: the detail form correctly shows only Name and Email, while the table adds a third column that can never be filled.
table-view.svelte:43 iterates schema.fields directly with no equivalent filter.
Blast radius: every node type, not just person
ai-chat is the worst case, with six system fields that would all leak the same way:
last_activecontext_tokenscreated_nodescapture:session_idcapture:transcript— raw PTY scrollback, documented as possibly containing "secrets, tokens, absolute paths"capture:summary
database-settings, task and project also declare system fields.
The capture:transcript case is the reason this is worth fixing promptly rather than bundling with a design discussion: a column surfacing raw terminal scrollback is a poor default, even if it renders empty in most rows.
Fix
Apply the same protection filter when deriving table columns. There is already a generic-schema-form-protection-filter.test.ts guarding the form side; the table has no equivalent.
Acceptance criteria
-
table-view.sveltefiltersprotection !== 'system'when deriving columns - Regression test mirroring
generic-schema-form-protection-filter.test.ts - Verified against
ai-chat(six system fields) as well asperson - Core and user-defined (schema-only) types both covered
- Non-system fields still render, in schema order, using
friendlyName
Context
Split out of #2374 item 2 as a contained fix. That issue's item 1 (whether _possible_duplicate should exist in its current per-type form at all) is a separate architectural question under design; this change is correct regardless of how that lands, since a system-protected field should not be a user-facing column either way.
Activity
malibio commentedon Sep 7, 2026
Baseline (worktree issue-2376-table-system-fields): Frontend 229 test files passed, 4848 tests passed.
malibio commentedon Sep 7, 2026
Baseline (worktree issue-2376-table-system-fields): Frontend: 4852 passed (230 test files)
Filter system-protected fields out of table columns (closes #2376) (#…
Put issues on the project board so gh:status stops failing