@devries-cameron20 / t3code Mirror · read-only / commits / 935917f50a
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 24, 10:15 UTC

fix(web): restore the running tool label shine (#9777)

maria committed Sep 4, 2026 at 17:11 UTC 935917f50a2d9ccdd772464de140c187ca80bb0b
2 files changed +35 -1
apps/web/src/components/chat/MessagesTimeline.tsx
+7 -1
@@ -1918,11 +1918,13 @@ function LiveActivityRow({
1918 iconName,
1919 toolIcon,
1920 failed = false,
1921 + active = false,
1922 }: {
1923 label: string;
1924 iconName?: WorkEntryIconName;
1925 toolIcon?: ToolActivityIcon | undefined;
1926 failed?: boolean;
1927 + active?: boolean;
1928 }) {
1929 return (
1930 <div className="min-h-6 w-fit max-w-full min-w-0 overflow-hidden rounded-md text-sm leading-relaxed">
@@ -1932,6 +1934,7 @@ function LiveActivityRow({
1934 toolIcon={toolIcon}
1935 failed={failed}
1936 announceFailure={failed}
1937 + active={active}
1938 />
1939 </div>
1940 );
@@ -1943,12 +1946,14 @@ function LiveActivityContent({
1946 toolIcon,
1947 failed = false,
1948 announceFailure = false,
1949 + active = false,
1950 }: {
1951 label: string;
1952 iconName: WorkEntryIconName | undefined;
1953 toolIcon?: ToolActivityIcon | undefined;
1954 failed?: boolean;
1955 announceFailure?: boolean;
1956 + active?: boolean;
1957 }) {
1958 const showTrailingFailureMark =
1959 failed && iconName !== undefined && !toolIconAcceptsTint(iconName, toolIcon);
@@ -1978,7 +1983,7 @@ function LiveActivityContent({
1983 />
1984 </span>
1985 ) : null}
1981 - <span className="min-w-0 flex-1 truncate">{label}</span>
1986 + <span className={cn("min-w-0 flex-1 truncate", active && "live-tool-shine")}>{label}</span>
1987 {showTrailingFailureMark ? (
1988 <XIcon aria-hidden className={cn("size-3 shrink-0", failedToolIconClassName)} />
1989 ) : null}
@@ -2004,6 +2009,7 @@ function LiveWorkEntryTimelineRow({ row }: { row: Extract<TimelineRow, { kind: "
2009 iconName={workEntryIconName(row.entry)}
2010 toolIcon={row.entry.toolIcon ?? row.entry.toolSource?.icon}
2011 failed={failed}
2012 + active={row.active}
2013 />
2014 </button>
2015 );
apps/web/src/index.css
+28
@@ -425,6 +425,34 @@ html[data-mobile-composer-route-transition="true"]::view-transition-old(t3-mobil
425 }
426 }
427
428 +@keyframes live-tool-shine {
429 + from {
430 + background-position:
431 + -4.5rem 0,
432 + 0 0;
433 + }
434 + to {
435 + background-position:
436 + calc(100% + 4.5rem) 0,
437 + 0 0;
438 + }
439 +}
440 +
441 +@utility live-tool-shine {
442 + @media (prefers-reduced-motion: no-preference) and (forced-colors: none) {
443 + color: transparent;
444 + background-image:
445 + linear-gradient(to right, transparent, var(--contrast-foreground), transparent),
446 + linear-gradient(var(--contrast-secondary-label), var(--contrast-secondary-label));
447 + background-size:
448 + 4.5rem 100%,
449 + 100% 100%;
450 + background-repeat: no-repeat;
451 + background-clip: text;
452 + animation: live-tool-shine 2.2s steps(30) infinite;
453 + }
454 +}
455 +
456 @property --assistant-citation-highlight-opacity {
457 syntax: "<number>";
458 inherits: true;