Skip to content

bug(platform): task history translates literal text that matches status codes #3751

Closed

Description

@yannickmonney

Task history translates literal title and description values when their text happens to equal a task status code. Renaming a task from the literal todo to done is stored correctly, but French history says titre modifié: À faire → Terminé. The activity log no longer reproduces the names that were edited.

Suggested severity: P3.

Reproduction with a synthetic local task:

  1. Rename the task to todo, then to done, using the ordinary native update route POST /api/app/tasks/{id}?orgId={org} with {title: "todo"} and {title: "done"}.
  2. Read the task and /activity. The task title is the literal done; the activity retains fromValue: "todo", toValue: "done", action: "title.changed".
  3. Render the actual activity adapter, hook and timeline with the French locale. The displayed transition is À faire → Terminé. In English it is To do → Done instead of preserving the literals.
  4. Set the description to the literal backlog: it is also treated as a status label. Ordinary text such as Timeline literal original remains unchanged. A genuine task-created status of todo correctly renders créé: À faire, the positive enum control.

Expected: format values according to their field/action. Translate real status values, while preserving arbitrary title/description/label text exactly, including text that coincides with a status code. Switching locale must not rewrite historical user text.

Cause: TaskTimelineEntry calls isTaskStatus(value) for every action after its few specialized branches. It does not restrict that conversion to status-bearing actions. This is a shared formatter defect, not one issue per language or text field.

Evidence: task-timeline-next/seed.py uses real local HTTP routes and PostgreSQL, with a new owned project/task and no workers or agents. timeline.probe.test.tsx reads the retained activity using the real backend adapter and query hook, and renders the actual TaskTimelineEntry with the real EN/FR providers. Only the actor directory's display labels/preview are fixture seams. A closed dispatcher admits just the native localhost activity read. Three observation/control cases passed in parent-probe.log; timeline-evidence.json records the native literals and both rendered locale results. This is a native-data/component proof; no fresh browser-layout or hardware-screen-reader pass is claimed.

Replay from the detached audit checkout's services/platform directory:

/Users/yannick/.npm/_npx/22f2fe8d8bc13000/node_modules/.bin/bun x vitest run --config /Users/yannick/.codex/notes/tale-1000-additional/task-timeline-next/vitest.config.ts --silent=false

Tested source 480ee6a3e6d33c3414a2c0f8a52fded1ddc4ca2d; renderer, display maps, adapters, hooks and native service are byte-identical to fetched main 2be6c267eaf8b7a67d0e5abe1b0b3d655eb2ca25. Dedup searched full bodies of 1,063 all-state issues, baseline102 and the 30 additional reports. No matching literal/enum collision was found. Date-picker localization and governance-log number formatting use different renderers and values. The separate empty-value fallback occurs when a field is removed; this defect needs two nonempty values and is not fixed by adding a cleared label. All testing was local; no production exploration, provider calls or source changes.

Acceptance: preserve the exact native text for titles, descriptions and labels in EN/DE/FR; translate actual status and created-status values; test a literal equal to each supported status token plus ordinary text and cleared-value controls.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugservice: platform

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions