Skip to content

Commit 9af0e96

Browse files
authored
Merge pull request #11 from QoderAI/fix/review-warnings
Fix/review warnings
2 parents b9401dd + 460548c commit 9af0e96

12 files changed

Lines changed: 15 additions & 25 deletions

LICENSE

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,7 @@
11
MIT License
22

3-
Portions of this software are derived from Claudian
4-
(https://github.com/YishenTu/claudian), authored by Yishen Tu. Claudian's
5-
upstream MIT copyright notice is retained verbatim:
6-
7-
Copyright (c) 2025
8-
9-
Copyright for Qoderian's own changes and additions:
10-
11-
Copyright (c) 2026 Qoder
3+
Copyright (c) 2026 Qoder
4+
Copyright (c) 2025
125

136
Permission is hereby granted, free of charge, to any person obtaining a copy
147
of this software and associated documentation files (the "Software"), to deal

NOTICE

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ This project contains code derived from Claudian:
55
https://github.com/YishenTu/claudian
66

77
Claudian is distributed under the MIT License. Its original copyright notice
8-
and MIT permission notice are retained in this repository's LICENSE file.
8+
("Copyright (c) 2025") is retained verbatim in this repository's LICENSE file
9+
alongside Qoder's own notice, and the MIT permission notice applies to both.
910
Qoder thanks the Claudian authors and contributors for their work.
1011

1112
Qoderian also includes or bundles third-party dependencies. Those components

src/app/settings/settings-storage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ function normalizeKeyboardNavigation(value: unknown): KeyboardNavigationSettings
104104
const candidate = value as Partial<Record<keyof KeyboardNavigationSettings, unknown>>;
105105
const pick = (key: keyof KeyboardNavigationSettings): string =>
106106
typeof candidate[key] === 'string' && candidate[key]
107-
? candidate[key] as string
107+
? candidate[key]
108108
: defaults[key];
109109

110110
return {

src/features/chat/chat-view.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export class QoderianView extends ItemView {
6161
// overwritten by prototype patching. Hover Editor patches QoderianView.prototype.load
6262
// after our class is defined, but instance methods take precedence over prototype methods.
6363
const prototype = Object.getPrototypeOf(this) as LoadableView;
64-
const originalLoad = prototype.load.bind(this) as () => Promise<void> | void;
64+
const originalLoad = prototype.load.bind(this);
6565
Object.defineProperty(this, 'load', {
6666
value: async () => {
6767
// Ensure containerEl exists before any patched load code tries to use it

src/features/chat/tabs/tab-qoder-context.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export function getTabSettingsSnapshot(
4141
_tab: TabQoderContext,
4242
plugin: QoderianPlugin,
4343
): TabQoderSettings {
44-
return plugin.settings as TabQoderSettings;
44+
return plugin.settings;
4545
}
4646

4747
export function getTabPermissionMode(

src/features/chat/ui/status-panel.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ export class StatusPanel {
129129
addBashOutput(info: PanelBashOutput): void {
130130
this.currentBashOutputs.set(info.id, info);
131131
while (this.currentBashOutputs.size > MAX_BASH_OUTPUTS) {
132-
const oldest = this.currentBashOutputs.keys().next().value as string | undefined;
132+
const oldest = this.currentBashOutputs.keys().next().value;
133133
if (!oldest) break;
134134
this.currentBashOutputs.delete(oldest);
135135
this.bashEntryExpanded.delete(oldest);

src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ export default class QoderianPlugin extends Plugin {
202202
for (const leaf of leaves) {
203203
if (leaf === keepLeaf) continue;
204204
try {
205-
await leaf.detach();
205+
leaf.detach();
206206
} catch {
207207
// Best-effort cleanup; the leaf may already be detached.
208208
}

src/qoder/history/qoder-conversation-history-service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ function sanitizeQoderState(
307307
return undefined;
308308
}
309309

310-
return Object.fromEntries(sanitizedEntries) as QoderState;
310+
return Object.fromEntries(sanitizedEntries);
311311
}
312312

313313
export function buildPersistedQoderState(

src/qoder/runtime/custom-spawn.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,7 @@ function installTreeAwareKill(child: ChildProcess, spawnSpec: WindowsCmdShimSpaw
7373
return;
7474
}
7575

76-
const originalKill = child.kill;
77-
const callOriginalKill = (signal?: NodeJS.Signals | number): boolean =>
78-
originalKill.call(child, signal);
76+
const callOriginalKill = child.kill.bind(child);
7977
const killableChild = {
8078
get pid(): number | undefined {
8179
return child.pid;

src/qoder/runtime/qoder-chat-runtime.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1178,7 +1178,7 @@ export class QoderChatRuntime implements ChatRuntime {
11781178
*/
11791179
resetSession() {
11801180
// Close persistent query (new session will use cold-start resume)
1181-
this.closePersistentQuery('session reset');
1181+
void this.closePersistentQuery('session reset');
11821182

11831183
// Reset crash recovery for fresh start
11841184
this.crashRecoveryAttempted = false;
@@ -1258,7 +1258,7 @@ export class QoderChatRuntime implements ChatRuntime {
12581258

12591259
// Close synchronously when session changes
12601260
if (sessionChanged) {
1261-
this.closePersistentQuery('session switch');
1261+
void this.closePersistentQuery('session switch');
12621262
this.crashRecoveryAttempted = false;
12631263
}
12641264

0 commit comments

Comments
 (0)