Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

fix(desktop): show per-task cost in pi sessions (#87212)

Adam Bowker2d5449432493
diff --git a/products/desktop/packages/ui/src/features/pi-sessions/PiSessionView.tsx b/products/desktop/packages/ui/src/features/pi-sessions/PiSessionView.tsx
index 60b4ab0effc9..786d80cb64e4 100644
--- a/products/desktop/packages/ui/src/features/pi-sessions/PiSessionView.tsx
+++ b/products/desktop/packages/ui/src/features/pi-sessions/PiSessionView.tsx
@@ -741,7 +741,9 @@ export function PiSessionView({ task, isCloud }: PiSessionViewProps) {
) : (
<PromptInput
sessionId={taskId}
- toolbarEndSlot={<ContextUsageIndicator usage={contextUsage} />}
+ toolbarEndSlot={
+ <ContextUsageIndicator usage={contextUsage} taskId={taskId} />
+ }
taskId={taskId}
repoPath={repoPath}
placeholder="Type a message..."