Live workspace events do not refresh intake-review or decision-records views

Open Beginner friendly
#421 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
88/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
react, typescript
Domain
frontend, testing

Research direction

Start with web/src/shell/workspaceEventQueries.ts and compare its SSE event mappings with the query keys used by IntakeReview.tsx and sections.ts (DecisionRecords.tsx). Update web/src/shell/workspaceEventQueries.test.ts to verify invalidation for both keys across the listed event kinds while leaving unrelated refreshes unchanged. Run the focused Vitest test, then the existing web unit, lint, and typecheck suites.

Written by the indexing model from the issue text.

Description

area:web difficulty:d1 layer:entry priority:p2 status:ready type:bug

Task difficulty and Agent fit

  • D1 · 3/15. Scope 1, uncertainty 0, impact 1, verification 1, dependencies 0. Wire the missing intake-review and decision-records query keys into workspaceEventQueries and add unit tests.
  • Recommended configuration. Codex / gpt-6.2-sol / low, 37 and $0.33 per benchmark task. Floor 30 in the Artificial Analysis Coding Agent Index v2.1. Trellin snapshot checked 2026-11-22.
  • Required skills and verification. TypeScript, TanStack Query invalidation, and Vitest (workspaceEventQueries.test.ts).
  • Scored baseline. c7f731b on main.
What happened

IntakeReview.tsx caches intake detail under ["intake-review", session, ...] and sections.ts (DecisionRecords.tsx) caches recorded decisions under ["decision-records", session], but web/src/shell/workspaceEventQueries.ts does not invalidate either query key on any live workspace SSE event (intake, library, proof, proof-result, evidence, claim, clarification, recheck, workspace).

As a result, when an intake draft is confirmed or superseded from the CLI, an agent, or another workbench window—or when a library item or evidence decision is recorded outside the active component—an open IntakeReview or DecisionRecords view remains stale until a manual page reload.

Steps to reproduce
  1. Open a disposable project in the workbench and navigate to Work → Review with a pending confirm_intake item open (or open the Decision records history view).
  2. Confirm the intake draft or approve an evidence/library item from the CLI (or another tab) so the database emits a workspace change event.
  3. Observe that the inbox updates over SSE, while the open intake-review detail or decision-records list does not refresh until reloaded.
Expected behavior & acceptance criteria
  • web/src/shell/workspaceEventQueries.ts invalidates ["intake-review", session] on intake, library, basis-item, recheck, and workspace events.
  • web/src/shell/workspaceEventQueries.ts invalidates ["decision-records", session] on decision-producing workspace events (intake, library, basis-item, claim, clarification, proof-result, evidence, recheck, workspace).
  • web/src/shell/workspaceEventQueries.test.ts verifies invalidation of both query keys across the relevant SSE event kinds without broadening unrelated event refreshes.
  • Existing web unit, lint, and typecheck suites pass.
Version

main @ c7f731b

Dominant language
Python
Stars
2
Forks
0
Avg merge
56m
Merged PRs (30d)
190

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from SAFuDarren/Trellin

All issues in SAFuDarren/Trellin

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.