Samuel Painter

Results issues of Samuel Painter

## Problem `projectSlug()` in `injector.ts:266` skips 'workplace', 'local', 'home', 'src', 'scratch' but not the username. For `/local/home/samfp`, it returns 'samfp' — then `searchSemantic('samfp', 5)` runs on every injection, wasting a...

## Problem `server.ts` is 2174 lines handling all routes, WebSocket, autoloop discovery, file watching, session search, and system monitoring. Hard to maintain, test, or optimize independently. ## Proposal Split into...

## Problem `/api/system` runs 3-4 `execSync` calls (ps, pgrep, df) on every request, blocking the event loop. Autoloop session discovery (lines 1194-1260) also uses many synchronous `execSync` calls to tmux/pgrep/readlink....

## Description After a tool call completes, the iOS app shows the session as idle (no spinner/loading indicator) even though the backend is still processing (feeding the tool result back...

bug

## Description When two pi extensions register a tool with the same name (e.g. `code_search`), `pi-web-access` throws a fatal error during `registerTool()`, crashing the entire `pi --mode rpc` process at...

bug
p1-high

## Description A chat slot shows `running: true, stopping: true` but the underlying `pi --mode rpc` process has already exited. The session becomes permanently unresponsive — no messages go through,...

bug
p1-high

## Description When navigating between chats or backgrounding the app, Swift's structured concurrency cancels in-flight Tasks. `ChatViewModel.loadHistory()` catches `CancellationError` and `URLError.cancelled`, but other async paths don't, causing error banners to...

bug
p2-medium

## Summary The diagnostics tool tells the LLM about errors, but without code actions the LLM has to reason about fixes from scratch. Auto-import, organize imports, and quick fixes are...

## Summary All position-based tools (hover, definition, references, rename, completions) require exact line:column. The LLM frequently knows a symbol name but not its position, requiring a wasteful `lsp_symbols` → `lsp_hover`...

## Problem When `getClientForLanguage` returns null because the server is starting, tools return a generic 'No LSP server available' message. The LLM doesn't know whether to retry or give up....