Repository navigation
[2467 by Claude Opus 5] Show user corrective messages in the goal execution timeline (readable log and raw terminal view) - #2469
Conversation
Backend
- `packages/api/services/goalAttachmentService.ts` — extracted `GOAL_ATTACHMENT_SECTION_HEADING` (previously inline in `appendGoalAttachments`) and added `stripGoalAttachmentSection()`, which removes the appended block of absolute `/tmp/git-processor/goal-attachments/...` paths and returns a bounded `attachmentCount`.
- `packages/api/services/goalProjection.ts` — added `GoalInputProjection` and `loadGoalInputs()`, which selects only `kind = 'input'` rows (newest 200, re-ordered oldest-first), strips the attachment block, truncates message bodies at 4,000 chars with a `truncated` flag, and normalizes `state` / `createdAt` / `deliveredAt`. SQLite's `CURRENT_TIMESTAMP` format is converted to UTC ISO so the UI's chronological merge isn't thrown off by timezone-less strings. `serializeGoal` takes `{ includeInputs?: boolean }` (default `true`) and includes `inputs`; `redactVisualPreviewValue` still runs over the whole projection.
- `packages/api/routes/goalRoutes.ts` — only the `list` handler passes `includeInputs: false`; every single-goal handler keeps the default, so a correction shows up in the same response that accepted it.
Frontend
- New `propr-ui/src/components/Goals/goalTimeline.ts` — `mergeGoalTimeline()` interleaves inputs with provider events by `deliveredAt ?? createdAt`, leaves provider order intact (events with missing/unparsable timestamps keep their position), and always puts pending messages last.
- `LiveEvent` gained the additive `'user_input'` type plus optional `inputState` / `attachmentCount` / `truncated`; `getCategoryDisplay`, `extractEventSummary`, `getEventIconType` and `EventIcon` handle it. `ThinkingLog` renders a dedicated amber `YOU` row with the message verbatim, and `ExecutionEventLog` renders the same in the terminal styling; both show a *Queued* badge for pending, a *Not delivered* badge for undeliverable, and an attachment count. `GoalsPage` feeds the merged timeline to both views.
Tests — `goalTimeline.test.ts` (8 cases: ordering, deliveredAt precedence, pending-at-end, unparsable timestamps), 5 new `goalProjection.test.ts` cases (kind filtering, attachment-path stripping, 200/4,000 bounds, `includeInputs: false` omission, timestamp normalization), and a `GoalsPage.test.tsx` case asserting chronological placement plus the Queued badge in both views. Both acceptance-criteria commands pass, as does the full UI suite (157 files / 1227 tests), the related API goal suites, and lint for both workspaces.
I captured preview evidence of both views from the running app via Playwright using a throwaway spec (removed after capture, so no e2e file is added to the branch).
|
/ultrafix |
|
🔄 Ultrafix loop started (goal: 8/10, max cycles: 10) First action:
|
|
CI failed: Validate unsigned darwin-arm64 package Please investigate and fix this CI failure.
Failure evidence
|
|
✅ Applied the requested follow-up changes in commit 5cd43ed Summary of ChangesFixed. The CI job's Cause: Fix — const pending = screen.getByText('Also update the changelog').closest<HTMLElement>('[data-testid="goal-user-message"]')!;Verification (all run in the worktree):
The desktop half of No preview files were generated: this is a type-annotation change in a test file with no user-visible rendering difference. 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
|
CI failed: Validate unsigned linux-x64 package Please investigate and fix this CI failure.
Failure evidence
|
|
CI failed: Validate unsigned linux-arm64 package Please investigate and fix this CI failure.
Failure evidence
|
|
CI failed: Validate unsigned darwin-x64 package Please investigate and fix this CI failure.
Failure evidence
|
…ntime` step runs `npm run desktop:typecheck`, which includes `npm run typecheck -w propr-ui`, and that failed with a single error:
Fixed. The CI job's `Typecheck and test unsigned desktop runtime` step runs `npm run desktop:typecheck`, which includes `npm run typecheck -w propr-ui`, and that failed with a single error:
```
src/pages/GoalsPage.test.tsx(662,19): error TS2345: Argument of type 'Element' is not assignable to parameter of type 'HTMLElement'.
```
**Cause:** `Element.closest()` is generic with a default of `Element`. On lines 659–660 the call is inlined directly as a `within(...)` argument, so contextual typing infers `HTMLElement`; on line 661 the result is stored in a `const` first, so it stayed `Element`, which `within()` rejects.
**Fix** — `propr-ui/src/pages/GoalsPage.test.tsx:661`, pass the type argument explicitly:
```ts
const pending = screen.getByText('Also update the changelog').closest<HTMLElement>('[data-testid="goal-user-message"]')!;
```
**Verification (all run in the worktree):**
- `npx tsc --noEmit` in `propr-ui` — exit 0, no errors.
- `npx vitest run src/pages/GoalsPage.test.tsx src/components/Goals/goalTimeline.test.ts` — 2 files, 40 tests passed.
- `npx eslint src/pages/GoalsPage.test.tsx` — clean.
The desktop half of `desktop:typecheck` runs before the UI half and had already passed in CI, so it was unaffected.
No preview files were generated: this is a type-annotation change in a test file with no user-visible rendering difference.
PR: #2469
Comment by: @propr-dev[bot] (ID: 5791679305)
Model: claude-opus-5
|
ℹ️ Analyzed the follow-up request by @propr-dev[bot] Analysis SummaryAll three CI comments point at the same run ( What actually failed
That is the single The extra linux-x64 evidence line — State of the fixThat TypeScript error was already fixed on this branch by the current HEAD commit const pending = screen.getByText('Also update the changelog').closest<HTMLElement>('[data-testid="goal-user-message"]')!;
Verification on HEAD (run in the worktree)
I made no code changes: the reported failure is already resolved on this branch and I could not reproduce it against HEAD. The three checks should go green on the next run now that No preview files were generated — there is no implementation change in this follow-up to show. No code changes were necessary based on the current state of the branch. 🤖 Analysis Details
💡 ProPR Slash Commands
🤖 Generated by ProPR |
|
✅ AI Code Review Complete requested by @propr-ultrafix Posted 1 review: |
🔍 AI Code Review — codex:gpt-5.6-solOverall EvaluationThis PR adds operator steering messages to both goal-output views, orders delivered inputs by delivery time, distinguishes queued/failed delivery states, and removes attachment filesystem paths from the projection. It needs one minor correctness fix before merge. ✅ Correct chronological source — ✅ Good data-boundary handling — Goal-list responses omit inputs, detail queries remain owner-scoped, and message/count limits bound the new projection. ✅ Strong verification — Focused API, timeline, and page tests cover filtering, ordering, states, attachments, truncation, and both output modes; all 25 current checks pass. Merge blockersEvery finding below was introduced by this PR and must be resolved before merging. F1: 🔴 Attachment framing can erase user text
SuggestionsThese are optional follow-ups and are not sent to No suggestions. ScoreThe core implementation is well scoped and thoroughly tested, but the new projection can deterministically corrupt valid free-text corrections. The fix is localized, and no current-head checks are failing. Score: 6/10 🤖 Review Details
🤖 Review by ProPR |
|
✅ Applied the requested follow-up changes in commit 0d08e4d
Summary of ChangesF1 is fixed by making the attachment framing explicit in storage rather than re-parsed from prose. What changed
Tests
Verification: No preview files were generated: this follow-up changes persistence and projection only — no UI component, layout, or styling changed, and the difference is the text content already rendered by unchanged timeline code. 🤖 Implementation Details
💡 ProPR Slash Commands
🤖 Generated by ProPR |
…orage rather than re-parsed from prose.
F1 is fixed by making the attachment framing explicit in storage rather than re-parsed from prose.
**What changed**
- New migration `packages/core/src/db/migrations/20260923000000_add_goal_input_display_body.js` adds `goal_inputs.display_message` (text) and `goal_inputs.attachment_count` (integer, default 0).
- `packages/api/routes/goalRoutes.ts:576` — `addGoalInput` now persists the operator-authored body and the attachment count alongside the provider-facing `message`; `addInput` passes `message.trim()` as the display body. The delivered `message` (with absolute attachment paths) is untouched, so provider delivery is unchanged.
- `packages/api/services/goalProjection.ts:112` — the timeline projection reads `display_message`/`attachment_count` when present, so nothing is ever parsed out of an operator's text for new rows.
- `packages/api/services/goalAttachmentService.ts:56` — the legacy parse path (rows written before the new column) now only strips a trailing block where *every* line is a generated entry: `- "<json name>" (<mime>): <path under /tmp/git-processor/goal-attachments/>`. A quoted heading, prose after the heading, a non-storage path, or any text following the block leaves the message intact and reports 0 attachments.
**Tests**
- `packages/api/test/goalAttachmentService.test.ts` — regression test covering a user-authored occurrence of the heading (with and without a `- ` bullet), a heading followed by a non-storage path, prose after a genuine section, and the genuine generated section still stripping to `{ message, attachmentCount: 1 }`.
- `packages/api/test/goalProjection.test.ts` — new test proving a correction that quotes the heading survives verbatim both via `display_message` and via the legacy fallback; plus a test that a stored row with `display_message` reports the count without leaking storage paths. The pre-existing strip test now covers the legacy-row path explicitly.
- `packages/api/test/goalRoutes.test.ts` — applies the new migration and asserts both the plain and attachment-bearing input rows store the display body and count.
- `test/goalMigration.test.ts` — covers the new columns and their rollback.
Verification: `goalAttachmentService`, `goalProjection`, `goalMigration`, `goalRoutes`, `mcpWorkflows`, `processGoalJob`, `goalRecovery`, `goalTaskIsolation` and `databaseMigrationGate` suites all pass; `packages/api` eslint and `tsc --noEmit` plus the root `tsc --noEmit` are clean.
No preview files were generated: this follow-up changes persistence and projection only — no UI component, layout, or styling changed, and the difference is the text content already rendered by unchanged timeline code.
PR: #2469
Comment by: @propr-ultrafix (ID: 0)
Model: claude-opus-5
|
✅ AI Code Review Complete requested by @propr-ultrafix Posted 1 review: |
🔍 AI Code Review — codex:gpt-5.6-solOverall EvaluationThe PR correctly persists and interleaves operator steering messages in both goal-output views, but it needs a minor correction before merge because valid long messages are projected lossily. ✅ Safe message separation — ✅ Well-scoped projection — Only owner-scoped ✅ Strong verification — Tests cover projection filtering, legacy attachments, ordering, pending states, both UI views, and schema migration; all 31 current checks pass. Merge blockersEvery finding below was introduced by this PR and must be resolved before merging. F2: 🔴 Long messages are not verbatim
SuggestionsThese are optional follow-ups and are not sent to S1: 🟢 Signal omitted input historyThe projection returns only the newest 200 inputs without telling the client that older durable messages exist. Pagination or an ScoreThe implementation is otherwise focused, secure, well tested, and backed by fully passing checks, but the lossy body projection conflicts with the central verbatim-display requirement. Score: 6/10 🤖 Review Details
🤖 Review by ProPR |
|
✅ Applied the requested follow-up changes in commit ecf2483
Summary of ChangesF2 is fixed: the goal timeline now projects operator messages verbatim. What changed
Verification
Preview evidence: captured with the repo's existing esbuild + Tailwind + Playwright Chromium pattern (as used by Visual previewReadable log — full operator messageA 6,090-character steering message in the goal readable log, rendered end to end with no clipping and no '… (truncated)' marker. Original unavailable: managed storage is unavailable or the upload has expired. Raw terminal view — full operator messageThe same 6,090-character message expanded in the raw terminal event log, showing the complete body the operator sent. Original unavailable: managed storage is unavailable or the upload has expired. 🤖 Implementation Details
💡 ProPR Slash Commands
🤖 Generated by ProPR |
…es verbatim. F2 is fixed: the goal timeline now projects operator messages verbatim. **What changed** - `packages/api/services/goalProjection.ts` — dropped `GOAL_INPUT_MESSAGE_LIMIT` and the slicing; `projectGoalInput` returns the complete `display_message` (or the legacy parsed body) and no longer emits a `truncated` flag. The row cap (`GOAL_INPUT_PROJECTION_LIMIT = 200`, newest rows) is untouched, so response-size control stays at the list level rather than clipping bodies. - Removed the now-dead truncation plumbing it fed: `truncated` on `GoalInput` (`propr-ui/src/api/goals.ts`), its mapping in `goalTimeline.ts`, the `truncated?: boolean` field added to `LiveEvent` by this PR (`TaskDetails/types.ts`), and the `… (truncated)` marker in both renderers (`ThinkingLog.tsx`, `ExecutionEventLog.tsx`). - Tests updated: the API test that asserted a 4,000-character clip now inserts a 65,536-character body (the longest the input route at `packages/api/routes/goalRoutes.ts:871` accepts) and asserts the projection returns it byte-for-byte; a new `goalTimeline` case asserts a 10,000-character message reaches the merged event intact; the `truncated` fixtures were dropped from `goalTimeline.test.ts` and `GoalsPage.test.tsx`. **Verification** - `packages/api/test/goalProjection.test.ts` — 8/8 pass; `goalRoutes` + `goalAttachmentService` — 4/4 pass (run with `PROPR_DEMO_MODE=true NODE_ENV=test`, since the suite otherwise exits on missing GitHub auth). - `propr-ui` vitest for `goalTimeline.test.ts` + `GoalsPage.test.tsx` — 41/41 pass. - `npm run typecheck` (root) and `npm run typecheck -w propr-ui` clean; `eslint` clean. **Preview evidence**: captured with the repo's existing esbuild + Tailwind + Playwright Chromium pattern (as used by `apps/desktop/scripts/desktop-sidebar-layout.test.mjs`), rendering a 6,090-character operator message in both the readable log and the raw terminal view — both render the full body with no clipping marker. The one-off capture script was run from the worktree and removed afterward, so only the source changes remain in the tree. PR: #2469 Comment by: @propr-ultrafix (ID: 0) Model: claude-opus-5
|
✅ AI Code Review Complete requested by @propr-ultrafix Posted 1 review: |
🔍 AI Code Review — codex:gpt-5.6-solOverall EvaluationThis PR adds durable operator-message metadata, projects it into goal details, and interleaves corrections into both readable and raw timelines. The implementation is well tested and all 31 current checks pass, but two correctness gaps mean it needs minor changes before merge. ✅ Clear operator distinction — Both timeline views render operator input with a dedicated ✅ Sound persistence model — New rows store the operator-authored body separately from provider-only attachment framing, while control, context, and resume rows are excluded. ✅ Robust timeline tests — Coverage includes delivery ordering, pending inputs, malformed timestamps, attachments, long messages, and both UI views. Merge blockersEvery finding below was introduced by this PR and must be resolved before merging. F3: 🔴 Global redaction rewrites operator messages
F4: 🔴 Timeline silently drops older corrections
SuggestionsThese are optional follow-ups and are not sent to S1: 🟢 Add a projection indexThe new query filters by ScoreThe core design and coverage are strong, and all current checks pass, but verbatim display and complete timeline history are central to the objective and still have localized correctness gaps. Score: 6/10 🤖 Review Details
🤖 Review by ProPR |
|
✅ Applied the requested follow-up changes in commit 47d7c9f
Summary of ChangesBoth findings are fixed in F3 — global redaction rewriting operator messages
const redacted = redactVisualPreviewValue(projection) as typeof projection;
return { ...redacted, ...optionalInputs };Everything ProPR writes into the payload (objective, failure reason, checkpoint fields, live summary) is still redacted exactly as before; only the F4 — timeline silently dropping older corrections
Tests (
Verification: Preview evidence: captured with the repo's esbuild + Tailwind + Playwright Chromium pattern — a goal steered 205 times, rendered through Visual previewGoal timeline: every correction, message text verbatimA goal steered 205 times. Correction 1 of 205 is still in the timeline (the 200-row cap is gone), and the operator message mentioning [local preview omitted] renders with that path intact in both the readable log and the raw terminal view, because preview redaction now runs before the operator Original unavailable: managed storage is unavailable or the upload has expired. 🤖 Implementation Details
💡 ProPR Slash Commands
🤖 Generated by ProPR |
…ction.ts`.
Both findings are fixed in `packages/api/services/goalProjection.ts`.
**F3 — global redaction rewriting operator messages**
`serializeGoal` now redacts the ProPR-authored projection first and attaches the already-sanitized operator inputs afterwards:
```ts
const redacted = redactVisualPreviewValue(projection) as typeof projection;
return { ...redacted, ...optionalInputs };
```
Everything ProPR writes into the payload (objective, failure reason, checkpoint fields, live summary) is still redacted exactly as before; only the `inputs` bodies — which already have their generated attachment paths stripped via `display_message`/`stripGoalAttachmentSection` — bypass it, so a correction is projected byte-for-byte as sent. Confirmed the old ordering did rewrite such text: `redactVisualPreviewPaths` turns `The screenshot at .propr/previews/dashboard.png is stale` into `... at [local preview omitted] is stale`.
**F4 — timeline silently dropping older corrections**
`loadGoalInputs` drops `GOAL_INPUT_PROJECTION_LIMIT` and the `.limit()`, and reads in ascending `sequence` order directly (no reverse), so every persisted `kind = 'input'` row reaches the detail projection. The goal *list* still pays nothing for this — `includeInputs: false` skips the query entirely.
**Tests** (`packages/api/test/goalProjection.test.ts`)
- The former "bounds the input list" test now inserts 205 rows and asserts all 205 project, that `input-0` (the first correction) is still first, and that the 65,536-character body is intact.
- New regression test: an operator message containing `.propr/previews/dashboard.png` projects verbatim while `failureReason` on the same goal is still redacted to `[local preview omitted]`.
**Verification**: `packages/api/test/goalProjection.test.ts` 9/9 pass; `goalRoutes` + `goalAttachmentService` 4/4 pass (run with `PROPR_DEMO_MODE=true NODE_ENV=test`); `tsc --noEmit -p packages/api` and the package's eslint config are both clean.
**Preview evidence**: captured with the repo's esbuild + Tailwind + Playwright Chromium pattern — a goal steered 205 times, rendered through `mergeGoalTimeline` into both `ThinkingLog` (readable log) and `ExecutionEventLog` (raw terminal view). Correction 1 of 205 is present in both, and the operator's own preview path renders intact. The one-off harness was removed from the worktree after capture.
PR: #2469
Comment by: @propr-ultrafix (ID: 0)
Model: claude-opus-5
|
CI failed: Validate unsigned darwin-x64 package Please investigate and fix this CI failure.
Failure evidence
|
|
✅ Applied the requested follow-up changes in commit d8c64f4 Summary of ChangesWhat failedThe The primary error slot was empty, so the whole macOS lifecycle (extract → launch → deep links → relaunch → remove) actually passed. Only the LaunchServices cleanup postcondition failed, and only on the Intel leg — Root cause
FixIn
Verification
New tests cover: the exact-record matcher's accept/reject set; a ~512 KiB stream with the record placed far outside the 64 KiB tail (found by the scanner, and asserted lost by the bounded runner, which pins the regression); a final record with no trailing newline; and each probe failure classification. The stale-registration test now asserts the re-issued I did not generate visual previews — this is a CI test-script fix with no user-perceptible UI change. One caveat worth stating: I can't execute 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
## What failed The `Validate unsigned darwin-x64 package` job failed in the step *Exercise staged native install, deep-link, relaunch, and removal lifecycle*: ``` NativeLifecycleFailure: Native lifecycle cleanup failed: launchservices-postcondition ``` The primary error slot was empty, so the whole macOS lifecycle (extract → launch → deep links → relaunch → remove) actually passed. Only the LaunchServices *cleanup postcondition* failed, and only on the Intel leg — `darwin-arm64` and both Linux legs were green in the same run, and this workflow had passed three times earlier on this branch. Nothing in PR #2469 touches the desktop app; the workflow just fires on `propr-ui/**`. ## Root cause `LaunchServicesAuthority.isListed()` in `apps/desktop/scripts/test-native-artifact-lifecycle.mjs:1138` probed registration by reading `lsregister -dump` through the shared bounded command helper. That helper caps output at `OUTPUT_CAP` (64 KiB) and `appendBounded` keeps the **trailing** window — while a real `lsregister -dump` emits megabytes. Two consequences: 1. The probe never saw the bundle record section at all on a normal run, so the postcondition passed vacuously. `stdoutOverflow` was also ignored here, unlike `inspectRunningProcessGroupMembers` (`:398`), which explicitly rejects truncated output as unusable. 2. Whatever landed in that tail decided the answer. The match was a loose substring-with-delimiters test, so a claimed-URL-scheme / handler-binding line echoing the copied app path counted as "still registered" — and those tables sit at the end of the dump. The copied app had just claimed `propr://` via `lsregister -f` plus `open -a`, so the echo persisted across all 10 re-probes (~18s of extra runtime, matching the observed 91s vs. the 73s arm64 leg). ## Fix In `apps/desktop/scripts/test-native-artifact-lifecycle.mjs`: - Added `scanCommandLinesForMatch`, a streaming line scanner that reads the *entire* dump and retains at most one bounded line, stopping at the first match. Failure classification (`COMMAND_FAILED` / `COMMAND_SIGNALLED` / `COMMAND_DEADLINE` / `COMMAND_SPAWN_FAILED`) matches the existing runner and still leaks no command output. `LaunchServicesAuthority` takes it as an injectable `scanCommand`. - Added `launchServicesRecordMatchesApplication`, which matches only the bundle `path:` record for the exact application root — the record `lsregister -f` creates and `-u` removes. Stale scheme/binding echoes, sibling paths, and nested helper bundles no longer count as registration. - `assertGone()` now re-issues `lsregister -u` on each re-probe, since a bundle opened through LaunchServices can be re-registered by the system after the first `-u` returns. ## Verification - `node --test apps/desktop/scripts/test-native-artifact-lifecycle.test.mjs` — 31/31 pass. - Full `npm run test -w @propr/desktop` (what the CI step runs) — 961 tests, 927 pass, 0 fail, 34 skipped. - ESLint clean on both changed files. New tests cover: the exact-record matcher's accept/reject set; a ~512 KiB stream with the record placed far outside the 64 KiB tail (found by the scanner, and asserted *lost* by the bounded runner, which pins the regression); a final record with no trailing newline; and each probe failure classification. The stale-registration test now asserts the re-issued `-u` calls. I did not generate visual previews — this is a CI test-script fix with no user-perceptible UI change. One caveat worth stating: I can't execute `lsregister` here, so the macOS-side behavior is reasoned from the job logs and the code rather than reproduced. If the postcondition still fails after this, the next thing to capture is the actual matching dump line, which the sanitized `NativeLifecycleFailure` message deliberately withholds today. PR: #2469 Comment by: @propr-dev[bot] (ID: 5793356720) Model: claude-opus-5
|
✅ AI Code Review Complete requested by @propr-ultrafix Posted 1 review: |
🔍 AI Code Review — codex:gpt-5.6-solOverall EvaluationThis PR is ready to merge. It durably preserves operator-authored text, projects only genuine steering inputs, and interleaves those inputs into both readable and raw goal timelines with strong coverage. ✅ Safe message projection — ✅ Correct timeline semantics — Delivered inputs use delivery time, pending inputs remain visibly queued at the end, and provider event ordering is preserved. ✅ Thorough verification — Tests cover ownership-sensitive projection, control-row filtering, long histories, maximum-size messages, attachment privacy, both UI modes, and migration rollback. All authoritative head checks pass. Merge blockersNo merge blockers. SuggestionsThese are optional follow-ups and are not sent to S1: 🟢 Handle pre-start relative times
S2: 🟢 Separate lifecycle changesThe LaunchServices streaming and unregister changes in ScoreThe implementation fulfills the objective with careful data handling, comprehensive edge-case tests, and a fully passing check suite. The remaining follow-ups are optional refinements. Score: 9/10 🤖 Review Details
🤖 Review by ProPR |



AI Implementation Summary
Closes #2467
Branch:
2467/claude-opus-5-show-user-corrective-mess-20260923-0819-buvCommits: ✅ Changes committed (6bf4cb9)
AI Processing Completed
Execution Details:
Summary:
Implementation complete. Summary of what I built for issue #2467:
Backend
packages/api/services/goalAttachmentService.ts— extractedGOAL_ATTACHMENT_SECTION_HEADING(previously inline inappendGoalAttachments) and addedstripGoalAttachmentSection(), which removes the appended block of absolute/tmp/git-processor/goal-attachments/...paths and returns a boundedattachmentCount.packages/api/services/goalProjection.ts— addedGoalInputProjectionandloadGoalInputs(), which selects onlykind = 'input'rows (newest 200, re-ordered oldest-first), strips the attachment block, truncates message bodies at 4,000 chars with atruncatedflag, and normalizesstate/createdAt/deliveredAt. SQLite'sCURRENT_TIMESTAMPformat is converted to UTC ISO so the UI's chronological merge isn't thrown off by timezone-less strings.serializeGoaltakes{ includeInputs?: boolean }(defaulttrue) and includesinputs;redactVisualPreviewValuestill runs over the whole projection.packages/api/routes/goalRoutes.ts— only thelisthandler passesincludeInputs: false; every single-goal handler keeps the default, so a correction shows up in the same response that accepted it.Frontend
propr-ui/src/components/Goals/goalTimeline.ts—mergeGoalTimeline()interleaves inputs with provider events bydeliveredAt ?? createdAt, leaves provider order intact (events with missing/unparsable timestamps keep their position), and always puts pending messages last.LiveEventgained the additive'user_input'type plus optionalinputState/attachmentCount/truncated;getCategoryDisplay,extractEventSummary,getEventIconTypeandEventIconhandle it.ThinkingLogrenders a dedicated amberYOUrow with the message verbatim, andExecutionEventLogrenders the same in the terminal styling; both show a Queued badge for pending, a Not delivered badge for undeliverable, and an attachment count.GoalsPagefeeds the merged timeline to both views.Tests —
goalTimeline.test.ts(8 cases: ordering, deliveredAt precedence, pending-at-end, unparsable timestamps), 5 newgoalProjection.test.tscases (kind filtering, attachment-path stripping, 200/4,000 bounds,includeInputs: falseomission, timestamp normalization), and aGoalsPage.test.tsxcase asserting chronological placement plus the Queued badge in both views. Both acceptance-criteria commands pass, as does the full UI suite (157 files / 1227 tests), the related API goal suites, and lint for both workspaces.I captured preview evidence of both views from the running app via Playwright using a throwaway spec (removed after capture, so no e2e file is added to the branch).
Detailed Logs:
53529522-6837-483c-a1fc-e4a5d427235cLog files stored at:
/tmp/claude-logs/issue-2467-2026-09-23T08-32-05-049Z-conversation.json/tmp/claude-logs/issue-2467-2026-09-23T08-32-05-049Z-output.txtLatest Conversation Messages
This PR was created automatically by ProPR after processing issue #2467.
💡 Need changes?
Comment on this PR to request refinements — the AI agent monitors comments and will update the implementation based on your feedback. Keep iterating until you're satisfied!
Visual preview
Human readable goal output with operator messages
Goal detail timeline at 1440px: delivered corrections are interleaved with agent output under a distinct YOU gutter label and amber accent, showing an attachment count instead of stored file paths, while the still-undelivered message waits at the end with a Queued badge.
Original unavailable: managed storage is unavailable or the upload has expired.
Raw terminal goal output with operator messages
The same merged timeline after switching to Raw terminal: user messages keep the YOU label, message icon and amber accent among the provider events, and the queued message still renders last with its badge.
Original unavailable: managed storage is unavailable or the upload has expired.