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

-5
View File
@@ -104,10 +104,6 @@ function findStreamingAssistantIndex(
return null;
}
/**
* Find the most recent assistant placeholder that an incoming answer
* delta should adopt instead of spawning a parallel row.
*/
function findActiveAssistantPlaceholderIndex(
prev: UIMessage[],
turn: UIMessageTurnFields = {},
@@ -848,7 +844,6 @@ function projectFileEdits(
options.effects?.bodyWrites.add(id);
}
/** Canonical UI-message reducer shared by WebSocket delivery and transcript replay. */
export function projectThreadEvent(
previous: ThreadProjectionState,
event: ThreadProjectionEvent,