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:
1 parent
cb3ba45317
commit
a4d2430140
922 files changed
+406
-7738
No files matched your search
@@ -108,7 +108,6 @@ function projectUserMessage(media: readonly UserMessageMedia[]): UserMessageProj
|
||||
return { imageLabels, attachmentNames }
|
||||
}
|
||||
|
||||
/** Projects gateway events into retained, reflowable conversation cells. */
|
||||
export class Transcript {
|
||||
readonly root: ScrollBoxRenderable
|
||||
readonly diagrams: TranscriptDiagrams
|
||||
@@ -273,7 +272,7 @@ export class Transcript {
|
||||
if (messages.length === 0) return
|
||||
const previousTop = this.root.scrollTop
|
||||
const previousHeight = this.root.scrollHeight
|
||||
let index = 1 // Keep the launch header first.
|
||||
let index = 1
|
||||
for (const message of messages) {
|
||||
if (message.compaction) {
|
||||
if (this.compaction(message.compaction, index)) index += 1
|
||||
|
||||
Reference in new issue
Block a user