Repository navigation
Description
Summary
A task opened as a page (/dashboard/$id/tasks/$taskId, how Home and Open as page open a task) treats a failed read as a missing task. If the task read fails for any reason other than the task being gone (offline, a server error, a lapsed connection), the page shows the platform's not-found dead end:
Page not found
The page you're looking for doesn't exist or may have been moved.
[Back to Home]
Nothing says the read failed, and there is no Try again. The read is tried again only when the tab regains focus (the app QueryClient's refetchOnWindowFocus for errored reads, app/router.tsx:45–47), when the browser reconnects, or on a reload. Until then the page states that the task doesn't exist. Someone who follows a notification or a shared task link on a flaky connection may conclude the task was deleted and leave.
The board's task dialog already separates the two cases (TaskDetailFallback with state: 'missing' | 'error'). The page doesn't.
Source
origin/main66162f288762bf4e4fe14b2d2d8400ae3ea0caa5.- This is a deterministic code path, read statically. No running stack was used: Review A has no stack reservation this occurrence.
- It is unchanged by feat(platform): create tasks faster and open a task dialog as a page #4557, which only replaced the page's copy-link button. The condition dates from feat(platform): put chats, tasks and the inbox in one Home panel #3492 (
116b60498, 2026-09-26).
The code path:
useTaskalready separates the cases (services/platform/app/features/tasks/hooks/queries.ts:168–198):task: data?.task ?? null;error: "the read failed for a reason other than the task being gone";notFound: settled and gone.
TaskDetailPageignores the difference (services/platform/app/features/tasks/components/task-detail-page.tsx):- it reads only
const { task, isLoading } = useTask(taskId);; - then
if (!isLoading && task === null) return <DashboardNotFound organizationId={organizationId} />;. - So a settled failed read (
dataundefined,isLoadingfalse) renders not-found.
- it reads only
- The route can't intercept it. Its loader (
app/routes/dashboard/$id/tasks/$taskId.tsx:14–19) only startsprefetchAdaptedQuerywithout awaiting it, so it never throws a read failure to a route error component. - The dialog surface does it right (
task-modal.tsx:1505–1510):notFound || readError != null→TaskDetailFallbackwithmissingorerror. Its comment says "The page surface has its own dead end (TaskDetailPage)". - Not tested:
task-detail-page.test.tsxmocksuseTaskas{ task, isLoading }only. It covers "the task is gone" (line 63) but no failed read.
The same not-found text ships in German ("Seite nicht gefunden … existiert nicht oder wurde möglicherweise verschoben") and French ("Page introuvable … n'existe pas ou a peut-être été déplacée").
Reproduction (expected from the code; not run live)
- Open a task as a page, from Home or with Open as page in the board dialog, so the address is
/dashboard/<org>/tasks/<taskId>. - Make
tasks/queries:getTaskfail with something other than a task-missing code (go offline before a reload, or have the backend answer with a server error), and reload. - After the read settles, the page shows Page not found with Back to Home for a task that exists.
Expected
- Gone (
notFound): keep the current dead end. - Failed (
errorset): say the task couldn't load, keep the person on the page, and offer Try again (refetch). - The dialog's
errorstate would also benefit from Try again; today it offers only Close.
Regression expectation
Extend task-detail-page.test.tsx:
- with
{ task: null, isLoading: false, error: <non-missing error>, notFound: false }, the not-found heading is absent, a load-failure message and Try again are present, and Try again refetches; - the existing "gone" case keeps its dead end.
Triage
- Severity: low. It needs a failed read. But it's on the task page, a critical Review A surface, and the copy affirmatively says the task doesn't exist.
- Owner: the platform owner of the task page and Home.
- Review A cells:
task.pageUX-CLARITY and REL-MANUAL. Found by Review A (TALE-358) at the 2026-10-09 00:15 Europe/Zurich occurrence. - Related, same class: bug(platform): a shared chat link that fails to load says the chat is "no longer available", with no retry #4535 (shared chat failed read shown as "no longer available"), bug(platform): document version history that fails to load is a dead end: no next step and no Try again #4577 (document version history failed read with no next step), bug(platform): failed Products, Contacts, or Websites list reads render as empty collections #3843 and Bug: Data-subject request dialog hides a failed subject-member read as “No matching members” #3857.
Activity
yannickmonney commentedon Oct 9, 2026
Review A (TALE-358) addendum: a second read on the same page (
mainda07e4933, static).The task's conversation shows the empty-thread invitation when its discussion read fails or hasn't settled:
German: "Noch keine Kommentare – beginne die Unterhaltung unten." French: "Aucun commentaire pour le moment — lance la conversation ci-dessous." This happens in both the board dialog and the task page.
useTaskDiscussion(app/features/tasks/hooks/queries.ts:257–272) wrapsuseCachedPaginatedQuery, which reportserroranderrorCount. It returns onlycomments,isLoading,hasEarlier,isLoadingEarlierandloadEarlier.TaskConversation(components/task-conversation.tsx:284–287) showsdetail.conversationEmpty(ordetail.noComments) whenever no rows are present. It doesn't readisLoading, and has no failure branch.task-conversation.test.tsx:275pins the empty invitation for a truly empty thread, with no failed or pending case.a6bff1933) kept it.Expected: the same split as above. A failed discussion read says the comments couldn't load and offers Try again; a pending read shows a loading state. The invitation stays for a settled empty thread.
Regression expectation: a
task-conversationtest with a failed discussion read shows the failure and Try again, not the invitation.yannickmonney commentedon Oct 12, 2026
Addendum 2 at
main363c476b5(Review A, TALE-358, 2026-10-12 12:15 Zurich occurrence; static reading).Three more reads on the task page drop their error and report "nothing" instead (
services/platform/app/features/tasks/hooks/queries.ts:202-231):useTaskDependenciesblockedBy: [],blocks: []components/task-dependencies.tsx:60: the section saysdetail.noDependencies(:306), or collapses (:116-117)useTaskLabelslabels: []components/label-editor.tsx:60,label-manage-dialog.tsx:50: "No labels yet." (labels.empty)useSubtaskssubtasks: []components/task-modal.tsx:1417: the client's open-subtask view is empty, so its parent-close hint can't applyExpected: as for the task read itself, distinguish "none" from "couldn't load", with Try again, for each of these sections.
fix(platform): say a task failed to load instead of Page not found