refactor: remove verified unused internals (#6460)

* refactor: remove verified unused internals

* test(linear): synchronize webhook shutdown with writer join
This commit is contained in:
chengyongru authored and GitHub committed 2026-10-26 21:45:36 +08:00
1 parent 3230013963
commit f23a6d1485
105 files changed
+207 -1282

No files matched your search

-2
View File
@@ -1688,8 +1688,6 @@ export class NanobotTui {
mode,
this.renderer.width,
footerHintTheme(this.palette),
process.platform,
Boolean(this.renderer.capabilities?.kitty_keyboard),
)
}
-1
View File
@@ -225,7 +225,6 @@ export function footerHintTheme(palette: Palette): FooterHintTheme {
accent: palette.accent,
danger: palette.error,
muted: palette.muted,
separator: palette.faint,
}
}
-1
View File
@@ -153,7 +153,6 @@ export class NanobotClient {
this.reconnectAttempt = 0
this.retryStartedAt = Date.now()
}
if (!this.lastFailure) this.lastFailure = "connection closed"
this.reportRetryState()
void this.checkHealthAndScheduleReconnect()
})
+2 -3
View File
@@ -6,7 +6,6 @@ const theme = {
accent: "#EF8E30",
danger: "#F87171",
muted: "#A1A1AA",
separator: "#71717A",
}
describe("footerHints", () => {
@@ -22,8 +21,8 @@ describe("footerHints", () => {
})
test("keeps passive composer modes free of permanent instructions", () => {
const ready = contextualFooterHints("ready", 100, theme, "linux")
const active = contextualFooterHints("active", 100, theme, "darwin")
const ready = contextualFooterHints("ready", 100, theme)
const active = contextualFooterHints("active", 100, theme)
expect(ready.chunks).toHaveLength(0)
expect(active.chunks).toHaveLength(0)
-3
View File
@@ -10,7 +10,6 @@ export interface FooterHintTheme {
accent: ColorInput
danger: ColorInput
muted: ColorInput
separator: ColorInput
}
export type FooterMode =
@@ -30,8 +29,6 @@ export function contextualFooterHints(
mode: FooterMode,
width: number,
theme: FooterHintTheme,
_platform: string = process.platform,
_shiftedEnter = false,
): StyledText {
return footerHints(hintsFor(mode, width), theme)
}