Skip to content

Commit b95862a

Browse files
ozgesolidkeyclaude
andcommitted
Fix null crash from removed chat-agent-setup button
The gear button (chat-agent-setup) was removed from HTML but its event listener in the renderer wasn't guarded with ?. — causing a null reference that crashed init and prevented ALL subsequent event handlers from registering (Folders, Wrap, JSON, Filter, etc.). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 8f97b00 commit b95862a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/renderer/renderer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12907,7 +12907,7 @@ function init(): void {
1290712907
// Launch/Stop agent button
1290812908
elements.chatLaunchAgent.addEventListener('click', toggleAgent);
1290912909
// Agent setup wizard
12910-
elements.chatAgentSetup.addEventListener('click', async () => {
12910+
elements.chatAgentSetup?.addEventListener('click', async () => {
1291112911
const result = await showAgentWizard();
1291212912
if (result && !agentRunning) {
1291312913
const res = await window.api.launchAgent() as any;

0 commit comments

Comments
 (0)