Repository navigation
Done
Description
Bugs (36)
- Phase 1: make a build on any machine either correct or loud #3 CLI convert drops --replace/--rename/--dates/--strip-metadata (WRONG, impact 5, effort S) (fixed in CLI: convert honours output flags, unambiguous comfy model names, safer formats lookup #61)
src/cli/plan.ts:153
buildOptions puts replaceOriginals, rename, renamePattern, keepDates and stripMetadata into built.options. The convert branch calls ready('convert', ..., { format, quality }) and passes only those two keys. Sofilesmith convert *.heic --to jpg --replace --strip-metadatakeeps the originals, keeps the GPS EXIF data, ignores --rename, and gives the files today's date even though the default is 'keep'. The other verbs spread built.options and work. Tests only check buildOptions.
Fix: Spread the finish and strip keys from built.options into both convert ready() calls - Phase 3: stop deadlocking on ComfyUI's stdio, stop lying about availability #5 PDF to DOCX/ODT/RTF offered but LibreOffice cannot do it (WRONG, impact 5, effort S) (fixed in Fix PDF to DOCX/ODT/RTF conversion with Writer PDF import #65)
src/shared/convert.ts:96
familyFormats gives a .pdf source the full WORD_FORMATS set. registry.ts convertTool sends non-txt PDF targets to soffice, and buildSofficeArgs (soffice.ts:23) passes no --infilter. Headless LibreOffice opens a PDF with draw_pdf_import (Draw), which has no docx/odt/rtf export filter, so it prints 'no export filter ... aborting', writes nothing, and the job throws. No test or e2e runs PDF->DOCX through real LibreOffice (tabs.test.ts only checks the catalog).
Fix: Add --infilter=writer_pdf_import for .pdf sources, or drop those targets for PDFs - Terminal redesign (S2 VS Code grouped) #22 Cancel ignored while PiD sidecar loads (HANG, impact 4, effort S) (fixed in PiD upscale: honour cancel and time out while the sidecar loads #59)
src/main/pid/sidecar.ts:174
upscale() checks signal.aborted only beforeawait this.ensure(). ensure() has no abort hook and no timeout, so the job keeps running and the abort listener is added only after the model is ready.
Fix: Race ensure() against the signal, re-check signal.aborted after it, add a startup timeout - feat: terminal redesign (S2 VS Code grouped) #23 registry load throws on malformed user-layer entry (CRASH, impact 4, effort S) (fixed in Registry: skip malformed user entries, pick Flux 2 companions by name first #62)
src/shared/registry.ts:461
A user file with "companions": {...} (object, not array) or a [null] companion makesfor (const c of e.companions ?? [])/c.subdirthrow TypeError. Anentries: [null]item throws at load.ts:100 (e.provenance). mergeRegistryChecked is not wrapped, so loadRegistry throws, cache stays null, and every call throws again. The design says a bad entry is skipped with a warning.
Fix: Shape-check entries, arrays and objects in readLayer/validateEntry; wrap each entry in try/catch and skip with a warning - feat: new app icon (blue folded F) #29 Upscale ignores EXIF orientation (WRONG, impact 4, effort S) (fixed in Harden upscale input handling and apply EXIF orientation #63)
src/main/tools/registry.ts:904
Only formats outside png/jpg/webp go through magick. A .jpg goes straight to Real-ESRGAN (WIC decode on Windows, no orientation applied), and to PiD and spandrel (PIL Image.open, no exif_transpose). The output PNG has no Orientation tag, so the pixels show sideways.
Fix: Pre-convert with magick -auto-orient when the source has an EXIF Orientation other than 1 - Command-line tool and Claude skill #30 ComfyUI engine install wipes PiD weights after a re-vendor (WRONG, impact 4, effort S) (fixed in Keep PiD weights and venv on re-vendor, serialise engine installs by kind #60)
src/main/pid/install.ts:132
The weights and the .venv live inside pidRepoDir(). When the repo marker does not match PID_REPO_REF (old installs wrote an empty marker, or the ref is bumped in an update), ensureRepo does rmSync(pidRepoDir()). installComfyEngine calls ensureRepo but never ensureWeights, so the PiD weights are gone and are not downloaded again.
Fix: Keep checkpoints/ (and the venv) out of the re-vendor rm, e.g. move them aside and restore, or vendor the source into a sibling dir - feat(cli): filesmith command line and Claude skill (#30) #31 driveRoots sync probe of every drive letter on main thread (HANG, impact 4, effort S) (fixed in ComfyUI discovery: one bounded model walker, YAML block lists, no blocking drive probe #69)
src/main/comfy/roots.ts:42
App.tsx and GenerateSettings call generate:status at start and on every mount/refresh. The handler runs scanGenerationModels synchronously in main, which calls comfyCandidateDirs -> comfySearchRoots -> driveRoots -> isDir('Z:\'). If a persistent mapped drive points at an offline NAS, the whole app freezes on each status call.
Fix: Cache the drive list per session, skip remote drives (GetDriveType), or probe async off the main thread - Remove the bottom status bar #32 Flux 2 companion set picked by byte size only (WRONG, impact 4, effort S) (fixed in Registry: skip malformed user entries, pick Flux 2 companions by name first #62)
src/shared/registry.ts:325
When the size is known, the nameHint is never checked. The 6e9 threshold in gen-archs.json:484 assumes fp8 files only. models.ts:251 passes fileSize() for GGUF files too, so a 9B Q4/Q3 GGUF with '9b' in its name falls under the threshold.
Fix: Check a name token first when present, or use GGUF header param count / dtype-aware size - Filesmith console: run filesmith commands from inside the app #39 Console scrollback cap skips the running block; one render per line (HANG, impact 4, effort M) (fixed in Console: bounded scrollback, batched output, correct tab completion #68)
src/renderer/src/components/console/consoleModel.ts:154
cap() never removes a running cmd block, so MAX_LINES=5000 does not limit the block that is growing. Each IPC line is its own dispatch:[...b.lines, x]plus cap's reduce. ConsoleOutput then re-maps all lines and calls outputForLine on each one, with no memo or virtualisation. Human dry-run output has one plan line per file (human.ts 'plan'), so a large folder freezes the renderer.
Fix: Trim the oldest lines inside an oversized running block; batch 'out' lines per animation frame; virtualise the output list - Release: packed-app tool check can hang for 45+ minutes #43 drop highlight sticks after drag leaves window (WRONG, impact 3, effort S) (fixed in Fix drop highlight reset, generated-image delete result, and seed and size in Generate info #66)
src/renderer/src/App.tsx:1188
onDragOver sets dragging=true. It is cleared only when dragleave's target is .app itself, but the titlebar, sidebar, centre and inspector cover every pixel of .app. A drag that leaves the window or is cancelled with Esc fires dragleave on a child, so the state never resets.
Fix: Use an enter/leave depth counter, or clear when relatedTarget is null; also clear on dragend/window blur - feat(console): Filesmith console for filesmith commands #44 Select popup does not scroll to the active option (WRONG, impact 3, effort S) (fixed in Fix select popup placement, narrow-window columns, Generate empty state and small-display window size #73)
src/renderer/src/components/ui/Select.tsx:81
setActive(n) changes only a class. Nothing calls scrollIntoView on the active li, either on open or on arrow, Home, End or type-ahead. The Generate Model and Upscale 'AI model' lists hold every ComfyUI model plus group headings, so they easily pass 9 rows.
Fix: useEffect on [open, active]: document.getElementById(${id}-${active})?.scrollIntoView({block:'nearest'}) - docs: user and developer docs, repo cleanup #45 withInstallLock joins a different install kind (WRONG, impact 3, effort S) (fixed in Keep PiD weights and venv on re-vendor, serialise engine installs by kind #60)
src/main/pid/install.ts:272
installPid and installComfyEngine share one inFlight promise. If either is running, the other call returns that promise. Example: PiD install is running (PidSetup), the user clicks 'Set up upscale engine' (ComfySetup), and comfy:install awaits the PiD install. That install never runs ensureSpandrel, but comfy:install still returns {ok:true}. Progress goes out on pid:progress, so the comfy card sits on 'Preparing'. The reverse case returns ok from pid:install without the weights.
Fix: Key the lock by kind, or after joining run the caller's own remaining steps; or reject with 'install running' - fix(release): the bundled-tool check can no longer hang #46 buildCompositeArgs: unescaped % in backdrop path (WRONG, impact 3, effort S) (fixed in Fix backdrop percent, odd video sizes, rename dollars, preview extension #70)
src/main/tools/removebg.ts:98
It appends${background}[0]. The repo's own magickFrame() comment in convert.ts says that a [frame] suffix makes ImageMagick read %d/%o/%x in the path as format codes. The backdrop path comes from RemoveBgSettings or the CLI --image flag with no check (registry.ts:1028-1037), so the composite pass reads the wrong file name and the job fails.
Fix: Use magickFrame(background) - Audit Filesmith.: Architecture (3) #56 filesmithOwnFolder suffix check (WRONG, impact 3, effort S) (fixed in Installer: never adopt a foreign folder, report a failed PATH edit #58)
build/installer/pages.nsh:69
The check only compares the last 9 chars of the picked folder with APP_FILENAME. If the user browses to an existing folder like D:\Work\Filesmith or D:\MyFilesmith (with their own files), no subfolder is added. Setup installs into it, and the next uninstall or update deletes the whole folder with its contents.
Fix: Append \filesmith unless the folder is empty or holds a previous install (check for the app exe or uninstaller) - Update dependency: electron, bump version to 0.9.1 #57 Video compress fails on odd-dimension sources (WRONG, impact 3, effort S) (fixed in Fix backdrop percent, odd video sizes, rename dollars, preview extension #70)
src/main/tools/compress.ts:104
At scale 100 no -vf is added, but -pix_fmt yuv420p is forced, and libx264 needs even dimensions for 4:2:0. An odd-size screen recording (for example 1001x561) fails the whole job.
Fix: Always add scale=trunc(iw/2)*2:trunc(ih/2)*2 (merge with the % scale filter) - Installer: never adopt a foreign folder, report a failed PATH edit #58 scanModelFiles cycle guard (HANG, impact 3, effort S) (fixed in ComfyUI discovery: one bounded model walker, YAML block lists, no blocking drive probe #69)
src/main/comfy/discover.ts:219
The visited key is path.resolve(dir), which does not follow junctions or symlinks. So upscale_models\link -> upscale_models gives a new key on every level (link, link\link, ...). findComfyCheckpoints got a depth cap after a real hang with the same pattern. This walker did not, and it dedups found files with resolve(), not realpath.
Fix: Key visited on realpathSync, dedup found on realpath, add a depth cap - PiD upscale: honour cancel and time out while the sidecar loads #59 extra_model_paths.yaml block lists ignored (WRONG, impact 3, effort S) (fixed in ComfyUI discovery: one bounded model walker, YAML block lists, no blocking drive probe #69)
src/main/comfy/discover.ts:90
ComfyUI's a111 example writesupscale_models: |followed by one path per indented line. The parser takes '|' as the value, joins base + '|', and add() drops it because it does not exist. The indented lines after it are never read. A relative base_path is also resolved against the process cwd, not the yaml folder.
Fix: Parse '|' block scalars and list items; resolve a relative base_path against the yaml's dir - chore(deps): Bump actions/checkout from 4.4.0 to 7.0.1 #77 --pinned keeps stale trees (WRONG, impact 2, effort S) (fixed in Ship third-party licence notices, drop the debug OpenMP runtime, make --pinned rebuild trees #75)
scripts/fetch-binaries.mjs:223
bundleLibreOffice, bundleGhostscript and bundleRealesrgan return 'already bundled' before they look at PIN. On a dev machine with existing resources/ trees, --pinned stages the pinned downloads and then ignores them. CI is not affected because its runner starts clean.
Fix: Skip the already-bundled early return when PIN is set (or wipe dest first) - chore(deps-dev): Bump the npm-minor-patch group across 1 directory with 15 updates #78 Generated-image delete ignores trash failure (UNHANDLED, impact 2, effort S) (fixed in Fix drop highlight reset, generated-image delete result, and seed and size in Generate info #66)
src/renderer/src/App.tsx:751
void window.filesmith.trashFile(path)drops the boolean result and removes the path from genResults anyway. trashOutputs and trashSources checkokand show an alert.
Fix: await trashFile; remove and unfocus only on true, else show the same alert - chore(deps-dev): Bump vite from 7.3.6 to 7.3.8 #79 Post-await dismiss/markQueued hit the current tab (RACE, impact 2, effort S) (fixed in Queue state: post-await actions hit the right queue, hydrate keeps live state #64)
src/renderer/src/App.tsx:562
trashSources awaits trashFile per path, then dispatches 'dismiss', which uses mapQueue (the queue of the tab on screen). After a tab switch the ids are not in that queue, so nothing is removed. 'markQueued' after the makeSource await in run() has the same shape. state.ts says post-await actions must use mapQueueIn.
Fix: Carry the queue key on dismiss/markQueued and use mapQueueIn (or mapItemById) - chore(deps-dev): Bump electron from 43.8.12 to 43.8.13 #80 Session hydrate resets tab and early options (RACE, impact 2, effort S) (fixed in Queue state: post-await actions hit the right queue, hydrate keeps live state #64)
src/renderer/src/state.ts:473
merged = {...action.state} takes tab, activeTool and options from the restored state (tab is always 'convert'). Only queues are merged with the live state. filesExist over many paths can take seconds.
Fix: Keep live tab/activeTool; merge options with live values winning - CLI: --replace, --rename and --dates have no effect on archive-routed converts #81 Rename pattern treats $ in file names as a replacement pattern (WRONG, impact 2, effort S) (fixed in Fix backdrop percent, odd video sizes, rename dollars, preview extension #70)
src/shared/outputNaming.ts:17
String.replace(/{name}/gi, name) reads$sequences in the replacement string as special patterns. A source 'Cash$$.jpg' with the pattern '{name}-web' gives 'Cash$-web'. 'a$&b' expands to the matched '{name}'. A source name that contains '{n}' also gets the sequence number put into it. The app's live example uses the same function, so the preview is wrong too.
Fix: Use replacer functions: .replace(re, () => name), and substitute all tokens in one pass - Publish SHA256SUMS beside the release installers #82 Generate Info shows wrong seed and size per image (WRONG, impact 2, effort S) (fixed in Fix drop highlight reset, generated-image delete result, and seed and size in Generate info #66)
src/renderer/src/App.tsx:786
In main, generate/index.ts:113 runs each image i with seed opts.seed + i, and workflow.ts prep clamps width and height with clampDim. The renderer's onGenerateImage records opts.seed and the unclamped opts.width/height for every image. Reusing the shown seed to reproduce image 2 or later gives image 1 instead.
Fix: Send the actual seed and clamped size with the generate:image event and store those - CLI: reject --replace, --rename and --dates on archive-routed converts #83 Tab completion garbles a word that has a closing quote (WRONG, impact 2, effort S) (fixed in Console: bounded scrollback, batched output, correct tab completion #68)
src/shared/consoleComplete.ts:119
The prefix is the word with its quotes removed by scan(). start = caret - prefix.length is off by the number of quote characters, so input[start-1] is not the quote and the slice keeps part of the old word.
Fix: Return the raw word start offset from splitAtCaret and replace from there - #90 path.ps1 exit code ignored (UNHANDLED, impact 2, effort S) (fixed in Installer: never adopt a foreign folder, report a failed PATH edit #58)
build/installer/path.nsh:12
nsExec result is popped into $0 and dropped. On a PC where Group Policy sets the execution policy (MachinePolicy/UserPolicy beats -ExecutionPolicy Bypass), or where powershell.exe is blocked, path.ps1 never runs. The user gets no message andfilesmithis not found.
Fix: Check $0 and DetailPrint/MessageBox on a non-zero code - #91 Source row keeps outputPath after its result is deleted (WRONG, impact 2, effort S) (fixed in Queue state: post-await actions hit the right queue, hydrate keeps live state #64)
src/renderer/src/state.ts:591
jobEvent 'done' writes outputPath onto the source item and also adds a separate result item. dismissAny with column 'output' hides only the result item, so the source item keeps the stale outputPath.
Fix: In dismissAny(output), clear outputPath/outputSize on sources whose outputPath matches the deleted result - #92 comfy: collision in formats/resolve (WRONG, impact 2, effort S) (fixed in CLI: convert honours output flags, unambiguous comfy model names, safer formats lookup #61)
src/cli/commands/formats.ts:92
scanModelFiles searches subfolders recursively and removes duplicates only by absolute path, so upscale_models/a/x.pth and upscale_models/b/x.pth both appear. formats lists both as 'comfy:x.pth'. resolveUpscaleModel (src/cli/deps.ts:71) silently takes the first match. The workaround is to pass the full path.
Fix: Emit a unique value (relative path), and reject ambiguous names in resolveUpscaleModel - #93 initialWindowSize exceeds small work areas (WRONG, impact 2, effort S) (fixed in Fix select popup placement, narrow-window columns, Generate empty state and small-display window size #73)
src/main/windowSize.ts:12
Math.max(MIN_WINDOW, min(DEFAULT, work)) lets the MIN override the work area, which contradicts the comment 'clamp to the display'. index.ts:140 also sets minWidth/minHeight to the same MIN, so the user cannot resize it to fit. It uses the primary display only.
Fix: Clamp to the work area, and lower the min size when the display is smaller - #98 Name column collapses when the sidebar is expanded on a narrow window (WRONG, impact 2, effort M) (fixed in Fix select popup placement, narrow-window columns, Generate empty state and small-display window size #73)
src/renderer/src/theme/views.css:52
Below 1280px the sidebar collapses on its own, but the toggle can override that while the window stays narrow (useSidebar override). The column widths ignore the sidebar state, so the 1fr name column has nothing left.
Fix: Under [data-sidebar=expanded] and narrow width, shrink or hide the result/kind columns - #99 Select popup opens downward inside the scrolling inspector (WRONG, impact 2, effort M) (fixed in Fix select popup placement, narrow-window columns, Generate empty state and small-display window size #73)
src/renderer/src/theme/controls.css:37
.vs-pop is position:absolute; top:100% inside .ibody (overflow:auto). It never flips up and never scrolls into view. Its lower rows ('choose folder…' is last) are hidden until the user scrolls the panel behind the open popup.
Fix: Flip above when space below is short, or render as fixed and measured like ContextMenu - #100 filesmith.cmd shim splits args on cmd metacharacters (WRONG, impact 2, effort M) (fixed in CLI: convert honours output flags, unambiguous comfy model names, safer formats lookup #61)
resources/cli/filesmith.cmd:10
PowerShell (legacy arg passing for .cmd) quotes only args with spaces, sofilesmith convert R&D.pngreaches cmd.exe asfilesmith.cmd convert R&D.png; cmd treats & as a command separator before %* is built. Same for | < > ^ in names.
Fix: Ship a .ps1 or .exe shim, or document quoting - #103 registry-hashes --check false STALE (WRONG, impact 1, effort S) (fixed in CI hardening: least-privilege workflows, pinned actions, SECURITY.md, Dependabot, honest registry check #72)
scripts/registry-hashes.mjs:105
isCurrent also requires urls[0] to equal a URL built from the repo's current head sha. Any new commit to the HF repo (README edit) makes every entry 'STALE' even when the file's sha256 is unchanged. docs/models.md recommends this check for CI.
Fix: In --check compare sha256 only (optionally verify the pinned URL still resolves) - #104 formats verb check uses
in(prototype keys) (WRONG, impact 1, effort S) (fixed in CLI: convert honours output flags, unambiguous comfy model names, safer formats lookup #61)
src/cli/commands/formats.ts:247
key in allis also true for inherited Object.prototype keys, so the UsageError guard is skipped and all[key] is a built-in function.
Fix: Object.hasOwn(all, key) - #105 PreviewPane ext() takes text after last dot of whole path (WRONG, impact 1, effort S) (fixed in Fix backdrop percent, odd video sizes, rename dollars, preview extension #70)
src/renderer/src/components/inspector/PreviewPane.tsx:8
ext(out) runs on the full output path: C:\a.b\file gives 'b\file'; ext('README') gives 'readme'. infoModel.extOf already handles both cases correctly.
Fix: Reuse infoModel.extOf on the basename - #106 completion ignores prefixes that classifyLine accepts (WRONG, impact 1, effort S) (fixed in Console: bounded scrollback, batched output, correct tab completion #68)
src/shared/consoleComplete.ts:50
Only a literal 'filesmith' prefix is stripped. classifyLine also accepts filesmith.exe/.cmd and global flags before the verb, so w0 is not a verb and the function returns null.
Fix: Reuse PREFIX and the global-flag skip from consoleLine - #112 Generate empty state always overflows its view (WRONG, impact 1, effort S) (fixed in Fix select popup placement, narrow-window columns, Generate empty state and small-display window size #73)
src/renderer/src/theme/views.css:75
.empty is height:100% of .vbody (a stretched grid item, so the height is definite). GenerateView puts it under the 6-row textarea (about 133px), so the content is always the view height plus the textarea height.
Fix: Make .vbody a column flex and give .empty flex:1 instead of height:100%
From /audit on Filesmith.. Findings were checked by a separate verify agent, but read the code before acting on one. Local report: C:\<user-home>\<claude-folder>\research\audit\2026-11-23-Sonara+Filesmith.md.
Metadata
Metadata
Assignees
Labels
No labels
Activity
Maxaubert commentedon Nov 28, 2026
All findings in this checklist are fixed and shipped in v0.9.1. Follow-up noted during review: --replace, --rename and --dates still have no effect on archive-routed CLI converts.