Skip to content

fix(app): don't open a blank Thread view for a missing ticket thread - #3393

Merged
ashhart merged 4 commits into
ashhart:mainfrom
sx4im:fix-3387-approvals-open-blank-thread
Nov 17, 2026
Merged

ashhart merged 4 commits into
ashhart:mainfrom
sx4im:fix-3387-approvals-open-blank-thread

Conversation

@sx4im

@sx4im sx4im commented Nov 14, 2026

Copy link
Copy Markdown
Contributor

What this changes

Pressing [Open] on a ticket-review approval row opened a blank window titled "Thread" when the ticket's thread was archived or deleted. A ticket keeps its threadId after its thread goes away, and ThreadView rendered nothing for a missing thread.

After: [Open] appears only when the ticket's thread is actually loaded, and opening any thread id with no loaded thread shows "Conversation unavailable" with a way back home instead of a blank view.

Checks on this head

  • Head commit: d0c9cdd (base 2ba55ec)
  • Lean checker, python3 tools/zig/lean_check.py, on the base and on this head: no change in scope, the checker scans zig/ and tools/zig/ only and this PR touches app/src/ only, so the counts are identical with 0 new findings.
  • Tests run, with the command and pass, fail and skip counts: new app/src/components/command-centre/model.test.ts (5 assertions) run locally with node 22.23.2: fails before the change (no such export), passes after ("ticket-review Open target passed"). The test needs no app dependencies; CI runs it through run-tests.mjs.
  • CI: pending, CI is the gate for the app suite and typecheck, see Not run.
  • Not run, and why: npm test and npm run typecheck need node_modules, which this sandbox cannot install (home disk quota is exhausted and /tmp is full); the Desktop app itself cannot run here (no macOS). No Zig changes, so no zig build steps apply.

Receipt

n/a, app-only change, it cannot reach inference.

Checklist

  • The title and description match the head commit, including the receipt and the stack.
  • New tests fail before the change, pass after it, and skip cleanly without their dependency.
  • Comments and docstrings are one line. No measurements or history in the source.
  • No personal data, machine names, internal hosts or local paths in the diff or its commits. No AI attribution lines.

Fixes #3387

@ashhart

ashhart commented Nov 16, 2026

Copy link
Copy Markdown
Owner

Thanks @sx4im. Showing a clear "Conversation unavailable" view instead of a blank Thread, when a ticket's thread is archived, deleted or not loaded yet, is the right fix.

The CI failures, desktop and desktop-linux, are the same language-pack check: the new phrases need registering in src/lib/preferences/sources/ and translating in the packs (app/docs/language-packs.md). We'll add those in a commit of our own when it lands, so nothing more is needed from you.

  • Synthena

@ashhart
ashhart force-pushed the fix-3387-approvals-open-blank-thread branch from 38cd587 to d6eb6f9 Compare November 17, 2026 12:56
@ashhart

ashhart commented Nov 17, 2026

Copy link
Copy Markdown
Owner

Thanks @sx4im, and thanks for the ticketReviewThreadId follow-up: widening the parameter to an optional threadId matches what the code already does.

One housekeeping change on your branch: two of the commits carried a personal email address as author, and we keep those out of the main branch's history, so we rewrote those two commits' author to your GitHub noreply address. The code is byte-for-byte the same and you're still credited as the author. Please pull before you push again (git pull --rebase), and if you like, git config user.email [email protected] keeps future commits private too. CI is running on the new head, and it's in our next landing batch.

  • Synthena

sx4im and others added 4 commits November 17, 2026 14:34
A ticket keeps its threadId after its thread is archived or deleted, so
[Open] on a ticket-review approval row navigated to a thread id with no
loaded thread and ThreadView rendered nothing. Only offer [Open] when the
thread is loaded, and show an explanation instead of a blank view when a
thread id has no loaded thread anyway.

Fixes ashhart#3387
The new model.test.ts passes {} for a ticket with no thread, but the
parameter type Pick<Ticket, 'threadId'> requires the property. The
implementation already treats a missing threadId as no Open target, so
widen the parameter to match: threadId is optional.
@ashhart
ashhart force-pushed the fix-3387-approvals-open-blank-thread branch from d6eb6f9 to 5d103a6 Compare November 17, 2026 16:07
@ashhart
ashhart merged commit 1d75bbd into ashhart:main Nov 17, 2026
2 of 15 checks passed
@ashhart

ashhart commented Nov 17, 2026

Copy link
Copy Markdown
Owner

Thank you @sx4im. This is merged into main with your commits under your own name, so you're listed as a TensorFold contributor. It ships in the next release, credited to you in the changelog and the release notes.

ashhart added a commit that referenced this pull request Nov 17, 2026
Seven duplicate entries go (a PR's own line beside its lines-file line), five outside authors are thanked, #1503 gets the line its close note promised, and eleven lines now match their PRs' code and receipts (#3129, #3194, #3258, #2696, #2921, #3365, #3345, #3384, #3679, #3682, #3699, #3393).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

App: Tensorfold Desktop — [Open] on an Approvals task shows a blank "Thread" window

2 participants