Skip to content

test(ui): read turn answers from the timeline in transcript projection tests - #5696

Closed
Astro-Han wants to merge 1 commit into
apache:mainfrom
Astro-Han:fix/ui-transcript-projection-test
Closed

Astro-Han wants to merge 1 commit into
apache:mainfrom
Astro-Han:fix/ui-transcript-projection-test

Conversation

@Astro-Han

Copy link
Copy Markdown
Contributor

Summary

tsc -p packages/ui fails on main, and so does every CI job that builds @maka/ui, including the merge ref of every open PR (for example package-linux on #5638, run 35985262613):

src/__tests__/transcript-projection.test.ts(94,29): error TS2339: Property 'assistant' does not exist on type 'TurnViewModel'.

#5510 added assertions on TurnViewModel.assistant, which #5559 had already removed; each PR passed on its own base. The assertions now read the turn's answers from its text timeline items, and each one still proves what it did: the earlier snapshot holds only the original answer, and the appended step shows up as its own text item.

Verification

  • npm --workspace @maka/ui run build: no type errors.
  • node --test dist/__tests__/transcript-projection.test.js in packages/ui: 26 pass.
  • npm run format, npm run lint.

AI use

  • No generative tool made a substantive contribution
  • Generative tooling made a substantive contribution

Tool(s) and scope: Claude Code: diagnosis, the test fix, and this description.

Checklist

  • Tests cover the change and fail without it
  • Lint, format, typecheck and the affected suites pass locally

Does this PR entail a change in behavior?

  • Yes — described under Summary above
  • No

…n tests

apache#5510 added assertions on `TurnViewModel.assistant`, which apache#5559 had
already removed, so `tsc -p packages/ui` fails on main and every job that
builds @maka/ui fails with it. The answers now come from the turn's text
timeline items. Each assertion keeps what it proved: the earlier snapshot
still holds only the original answer, and the appended step shows up as
its own text item.

Generated-by: Claude Code
@Astro-Han

Copy link
Copy Markdown
Contributor Author

Folded into #5638, which needs the same fix to go green.

@Astro-Han Astro-Han closed this Sep 24, 2026
@github-actions github-actions Bot added the effort/S Under 100 readable lines label Sep 24, 2026
@Astro-Han
Astro-Han deleted the fix/ui-transcript-projection-test branch September 24, 2026 10:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

effort/S Under 100 readable lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant