Skip to content

feat(web): render shared session transcripts with collapsed agent work - #5382

Merged
eshurakov merged 10 commits into
mainfrom
session/agent_e6d33ab0-4940-4c49-902c-9d10b8096f36
Aug 20, 2026
Merged

feat(web): render shared session transcripts with collapsed agent work#5382
eshurakov merged 10 commits into
mainfrom
session/agent_e6d33ab0-4940-4c49-902c-9d10b8096f36

Conversation

@kilo-code-bot

@kilo-code-bot kilo-code-bot Bot commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Turn /s/{token} from a handoff card into a public chat transcript.
  • Fetch the existing public session snapshot and render user/assistant chat.
  • Collapse consecutive tool, reasoning, and subtask parts into one expandable "Worked for …" row so the default view is chat, not agent work.

Test plan

Screenshot 2026-08-19 at 23 01 40

kilo-code-bot Bot and others added 3 commits August 19, 2026 18:34
Refactor the shared session page to display the actual conversation
transcript instead of just metadata. This includes fetching the session
snapshot and introducing a new `SharedSessionTranscript` component.

- Add `fetchSharedSessionSnapshot` to `session-ingest-client` to retrieve
  session data.
- Implement `SharedSessionTranscript` and utility functions to transform
  snapshots into message formats.
- Update `SharedSessionPage` to use a sticky header and display the
  transcript.
- Add comprehensive unit tests for the new client methods and UI
  components.
- Refactor existing tests to align with the new component structure.
…ssion page

- Show repo, branch, and created date from share metadata endpoint
- Sort snapshot messages by id to match session viewer ordering
- Merge consecutive assistant messages into single transcript turns
- Hide synthetic snapshot-init progress text
- Simplify OpenInCliButton copy feedback and support variant prop
Comment thread apps/web/src/app/s/[sessionId]/page.tsx Outdated
Comment thread apps/web/src/lib/session-ingest-client.ts
Comment thread apps/web/src/app/s/[sessionId]/shared-session-meta.ts
@kilo-code-bot

kilo-code-bot Bot commented Aug 19, 2026

Copy link
Copy Markdown
Contributor Author

Code Review Summary

Status: 3 Issues Found | Recommendation: Address before merge

Overview

Severity Count
CRITICAL 0
WARNING 2
SUGGESTION 1
Issue Details (click to expand)

WARNING

File Line Issue
apps/web/src/app/s/[sessionId]/page.tsx 25 Snapshot fetch errors 500 the public share page
apps/web/src/lib/session-ingest-client.ts 360 Existing metadata unit test will fail

SUGGESTION

File Line Issue
apps/web/src/app/s/[sessionId]/shared-session-meta.ts 31 Date formatting depends on process timezone
Files Reviewed (18 files)
  • apps/web/src/app/s/[sessionId]/page.test.ts - 0 issues
  • apps/web/src/app/s/[sessionId]/page.test.tsx - 0 issues (deleted)
  • apps/web/src/app/s/[sessionId]/page.tsx - 1 issue
  • apps/web/src/app/s/[sessionId]/shared-session-meta.test.ts - 0 issues
  • apps/web/src/app/s/[sessionId]/shared-session-meta.ts - 1 issue
  • apps/web/src/app/s/[sessionId]/shared-session-transcript.test.ts - 0 issues
  • apps/web/src/app/s/[sessionId]/shared-session-transcript.tsx - 0 issues
  • apps/web/src/app/s/[sessionId]/shared-transcript.test.ts - 0 issues
  • apps/web/src/app/s/[sessionId]/shared-transcript.ts - 0 issues
  • apps/web/src/app/share/[shareId]/open-in-cli-button.tsx - 0 issues
  • apps/web/src/lib/cloud-agent-next/message-ordering.test.ts - 0 issues
  • apps/web/src/lib/cloud-agent-next/message-ordering.ts - 0 issues
  • apps/web/src/lib/session-ingest-client.test.ts - 0 issues
  • apps/web/src/lib/session-ingest-client.ts - 1 issue
  • services/session-ingest/src/app.ts - 0 issues
  • services/session-ingest/src/index.test.ts - 0 issues
  • services/session-ingest/src/services/session-share-token.test.ts - 0 issues
  • services/session-ingest/src/services/session-share-token.ts - 0 issues

Fix these issues in Kilo Cloud


Reviewed by grok-4.6 · Input: 92.7K · Output: 44.6K · Cached: 970.9K

Review guidance: REVIEW.md from base branch main

Only allow http(s) links (and raster data image srcs) when rendering V2
session markdown, autolinks, files, and tool-card URLs.

@iscekic iscekic left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved, bot comments below

Comment thread apps/web/src/app/s/[sessionId]/shared-session-transcript.tsx
Comment thread apps/web/src/app/s/[sessionId]/shared-session-transcript.tsx
Comment thread services/session-ingest/src/app.ts Outdated
Question and suggest tool cards now fall back to a read-only summary
outside CloudAgentProvider. Snapshot fetch failures are shown as a
load error instead of an empty transcript, and shared metadata
serializes created_at as UTC ISO.
ToolStatePending has no metadata, so typecheck failed when answersFrom
read it on the shared-session snapshot path.
… schema

Main removed the experimental overlay, but the referenced Config definition
test still asserted the key existed. CI merge with main failed that case.
@eshurakov
eshurakov merged commit 211b1f1 into main Aug 20, 2026
12 checks passed
@eshurakov
eshurakov deleted the session/agent_e6d33ab0-4940-4c49-902c-9d10b8096f36 branch August 20, 2026 12:50
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.

2 participants