refactor: remove redundant comments and docstrings (#6527)

* refactor: remove redundant comments and docstrings

* fix(signal): annotate async context manager as a generator
This commit is contained in:
chengyongru authored and GitHub committed 2026-10-30 13:07:03 +08:00
1 parent cb3ba45317
commit a4d2430140
922 files changed
+406 -7738

No files matched your search

@@ -285,7 +285,6 @@ function FoldedAgentActivity({
const [now, setNow] = useState(() => Date.now());
const wasTurnStreamingRef = useRef(isTurnStreaming);
const wasTurnStreaming = wasTurnStreamingRef.current;
/** Auto follows execution; expanded keeps details open unless manually collapsed. */
const outerExpanded = expanded ?? (
userToggledOuter
? outerOpenLocal
@@ -82,8 +82,6 @@ function resolveCopy(
case "model_request_failed":
return resolveModelRequestFailureCopy(error, t);
default: {
// Exhaustiveness guard: if a new StreamError kind is added, TS will
// complain here until we add a corresponding i18n branch.
const _exhaustive: never = error;
return { title: String(_exhaustive), body: "" };
}