Live workspace events do not refresh intake-review or decision-records views
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
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
Task difficulty and Agent fit
- D1 · 3/15. Scope 1, uncertainty 0, impact 1, verification 1, dependencies 0. Wire the missing
intake-reviewanddecision-recordsquery keys intoworkspaceEventQueriesand 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.
c7f731bon 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
- Open a disposable project in the workbench and navigate to Work → Review with a pending
confirm_intakeitem open (or open the Decision records history view). - Confirm the intake draft or approve an evidence/library item from the CLI (or another tab) so the database emits a workspace change event.
- Observe that the inbox updates over SSE, while the open
intake-reviewdetail ordecision-recordslist does not refresh until reloaded.
Expected behavior & acceptance criteria
-
web/src/shell/workspaceEventQueries.tsinvalidates["intake-review", session]onintake,library,basis-item,recheck, andworkspaceevents. -
web/src/shell/workspaceEventQueries.tsinvalidates["decision-records", session]on decision-producing workspace events (intake,library,basis-item,claim,clarification,proof-result,evidence,recheck,workspace). -
web/src/shell/workspaceEventQueries.test.tsverifies 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
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from SAFuDarren/Trellin
-
difficulty:d3 layer:entry priority:p2 status:ready type:refactor
Difficulty 4/5 3-5 days Newbie friendliness 35/100
SAFuDarren/Trellin#424 ·
Maintainers usually reply within 1 day
-
area:web difficulty:d3 layer:entry priority:p1 status:triage type:feature
Difficulty 4/5 3-5 days Newbie friendliness 48/100
SAFuDarren/Trellin#423 ·
Maintainers usually reply within 1 day
-
area:web difficulty:d3 layer:entry priority:p1 status:triage type:feature
Difficulty 4/5 3-5 days Newbie friendliness 45/100
SAFuDarren/Trellin#422 ·
Maintainers usually reply within 1 day
-
difficulty:d3 layer:entry priority:p1 status:ready type:chore
Difficulty 4/5 3-5 days Newbie friendliness 48/100
SAFuDarren/Trellin#412 · 5 comments ·
Maintainers usually reply within 1 day
-
difficulty:d4 layer:collab priority:p1 status:ready type:feature
Difficulty 5/5 Over a week Newbie friendliness 25/100
SAFuDarren/Trellin#403 · 11 comments ·
Maintainers usually reply within 1 day
All issues in SAFuDarren/Trellin
Similar issues
-
Status: Triage Suggestion
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
GTNewHorizons/GT-New-Horizons-Modpack#27957 ·
Maintainers usually reply within 1 day
-
changelog investigate
Difficulty 1/5 Under an hour Newbie friendliness 85/100
ramnes/notion-sdk-py#522 ·
-
top `--file` with a non-UTF-8 CSV gives a raw codec error and "Check the arguments."Possibly taken @Beehtrix claimed this today. Opengood first issue
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
laaielichter/Gulliver#263 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
LearningCircuit/local-deep-research#10161 ·
Maintainers usually reply within 1 day