Skip to content

Commit 67700e6

Browse files
npub1223z34hd7vtwc6qj4s7flsxkj644nlre2nthu7lrrmkumhu3xddsrx9r6wtellaho
authored andcommitted
feat(desktop): polish agent-session transcript UI atop declared-ownership model
Replay of PR #1061 (tho/activity-ui-polish) onto fresh main: lands the 20 UI-polish commits as one net diff, reconciled with #1229's merged declared-ownership model (viewerIsOwner = isCurrentUserOwner || isOwner) and #1089's content-visibility-auto virtualization. Notable reconciles: - markdown.tsx: ported the compact/tight variant system into main's newer lightbox/spoiler markdown component (rather than overwriting it), layering variant density/leading overrides after the base owl-spacing so tailwind-merge wins. Dropped the branch's hardcoded text-[15px] in favor of main's rem-token text-sm base (post-#1052 zoom-safe scale). - agentSessionTranscript.ts: pass TranscriptItemContext (not channelId). - managed_agents: thread avatar_url through ManagedAgentSummary so the transcript renders the assistant-bubble avatar from the pinned record snapshot; bumped runtime.rs size override 2001 -> 2002 for the +1 line. Observer-seed screenshots intentionally excluded (separate follow-up). Co-authored-by: Taylor Ho <taylorkmho@gmail.com> Signed-off-by: Taylor Ho <taylorkmho@gmail.com>
1 parent 68a0cc8 commit 67700e6

32 files changed

Lines changed: 3139 additions & 494 deletions

desktop/scripts/check-file-sizes.mjs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,10 @@ const overrides = new Map([
4646
["src-tauri/src/managed_agents/nest.rs", 1450],
4747
// harness-persona-sync: persona-runtime resolution threaded into the spawn
4848
// path here. Load-bearing feature growth; queued to split in the resolver
49-
// unify refactor followup.
50-
["src-tauri/src/managed_agents/runtime.rs", 2001],
49+
// unify refactor followup. +1 line from the activity-ui-polish replay:
50+
// build_managed_agent_summary now threads avatar_url so the transcript UI can
51+
// render the assistant-bubble avatar from the pinned record snapshot.
52+
["src-tauri/src/managed_agents/runtime.rs", 2002],
5153
["src-tauri/src/managed_agents/personas.rs", 1080],
5254
// Phase-2 inbound reconcile + review-fix cycle: reconcile_inbound_persona_event
5355
// dispatches 30175/30176/30177 inbound plus kind:5 tombstone consume

desktop/src-tauri/src/managed_agents/runtime.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1405,6 +1405,7 @@ pub fn build_managed_agent_summary(
14051405
max_turn_duration_seconds: record.max_turn_duration_seconds,
14061406
parallelism: record.parallelism,
14071407
system_prompt: record.system_prompt.clone(),
1408+
avatar_url: record.avatar_url.clone(),
14081409
model: record.model.clone(),
14091410
provider: record.provider.clone(),
14101411
persona_out_of_date,

desktop/src-tauri/src/managed_agents/types.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,7 @@ pub struct ManagedAgentSummary {
268268
pub max_turn_duration_seconds: Option<u64>,
269269
pub parallelism: u32,
270270
pub system_prompt: Option<String>,
271+
pub avatar_url: Option<String>,
271272
pub model: Option<String>,
272273
/// LLM inference provider, from the agent's pinned record snapshot.
273274
pub provider: Option<String>,

0 commit comments

Comments
 (0)