Skip to content

Commit ed9fa03

Browse files
committed
fix(mobile): retain question icon for folded answers
1 parent b74e419 commit ed9fa03

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

‎apps/mobile/src/lib/threadActivity.test.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,7 @@ describe("buildThreadFeed", () => {
313313
const feed = buildThreadFeed({ messages, activities });
314314
const rows = feed.flatMap((entry) => (entry.type === "activity-group" ? entry.activities : []));
315315
expect(rows).toHaveLength(1);
316+
expect(rows[0]?.icon).toBe("message");
316317
expect(rows[0]?.workEntry).toMatchObject({
317318
tone: "tool",
318319
label: "User input submitted",

‎apps/mobile/src/lib/threadActivity.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -937,6 +937,7 @@ function workEntryStatus(entry: WorkLogEntry): ThreadFeedActivity["status"] {
937937
function workEntryIcon(entry: DerivedWorkLogEntry): ThreadFeedActivity["icon"] {
938938
if (entry.agentSpawn) return "agent";
939939
if (
940+
entry.questionAnswer ||
940941
entry.sourceActivityKind === "user-input.requested" ||
941942
entry.sourceActivityKind === "user-input.resolved"
942943
) {

0 commit comments

Comments
 (0)