Full document, spreadsheet, slideshow, and diagram tooling
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request 'fix: use HTTPS endpoint for AI chat to prevent mixed content blocking' (#168) from fix/ai-chat-https-endpoint into main

scott 98f5e09d 2e543ea3

+5 -5
+2 -2
src/lib/ai-chat.ts
··· 33 33 const LS_ENDPOINT = 'tools-ai-endpoint'; 34 34 const LS_MODEL = 'tools-ai-model'; 35 35 36 - const DEFAULT_ENDPOINT = 'http://ai'; 36 + const DEFAULT_ENDPOINT = 'https://ai.lobster-hake.ts.net'; 37 37 const DEFAULT_MODEL = 'claude-sonnet-4-20250514'; 38 38 const DEFAULT_MAX_TOKENS = 4096; 39 39 ··· 445 445 <summary>Advanced</summary> 446 446 <div class="ai-chat-settings-field"> 447 447 <label for="ai-endpoint">Endpoint</label> 448 - <input type="text" id="ai-endpoint" placeholder="http://ai" spellcheck="false" autocomplete="off"> 448 + <input type="text" id="ai-endpoint" placeholder="https://ai.lobster-hake.ts.net" spellcheck="false" autocomplete="off"> 449 449 </div> 450 450 </details> 451 451 </div>
+3 -3
tests/ai-chat.test.ts
··· 44 44 45 45 it('loadConfig returns defaults when localStorage is empty', () => { 46 46 const cfg = loadConfig(); 47 - expect(cfg.endpoint).toBe('http://ai'); 47 + expect(cfg.endpoint).toBe('https://ai.lobster-hake.ts.net'); 48 48 expect(cfg.model).toBe('claude-sonnet-4-20250514'); 49 49 expect(cfg.maxTokens).toBe(4096); 50 50 }); ··· 470 470 it('loadConfig returns default endpoint when stored value is empty string', () => { 471 471 localStorage.setItem('tools-ai-endpoint', ''); 472 472 const cfg = loadConfig(); 473 - expect(cfg.endpoint).toBe('http://ai'); 473 + expect(cfg.endpoint).toBe('https://ai.lobster-hake.ts.net'); 474 474 }); 475 475 476 476 it('config persistence round-trip preserves all fields', () => { ··· 1252 1252 it('getConfig returns initial config', () => { 1253 1253 const { wiring } = setup(); 1254 1254 const cfg = wiring.getConfig(); 1255 - expect(cfg.endpoint).toBe('http://ai'); 1255 + expect(cfg.endpoint).toBe('https://ai.lobster-hake.ts.net'); 1256 1256 expect(cfg.model).toBe('claude-sonnet-4-20250514'); 1257 1257 }); 1258 1258