Repository navigation
Conversation
Contributor
Author
|
Closing — won't have bandwidth to address feedback on this. Apologies for the noise. |
This was referenced Apr 20, 2026
pull Bot
pushed a commit
to bhardwajRahul/gaia
that referenced
this pull request
Apr 24, 2026
## Summary Bundles 7 small, disjoint bug fixes originally submitted by @CodeLine9 in amd#804–amd#810. He closed them himself citing bandwidth; the underlying issues (amd#642, amd#787, amd#788, amd#789, amd#791, amd#792, amd#793) are all still open and the fixes are still valid. Each commit preserves CodeLine9's authorship. All fixes target different files, so the bundle carries **zero merge conflicts** and is easy to review as a single unit. ## Fixes (one commit each) - **fix(lemonade): remove `shell=True` from `Popen(list, …)`** (closes amd#787) — On POSIX, `sh -c` silently dropped `serve`/`--log-level`/`--ctx-size`. Highest-impact item in the bundle: Linux/macOS users were running Lemonade with wrong context size and missing flags. - **fix(security): validate port is integer in `kill_process_on_port`** (closes amd#789) — Casts `port` to `int` before shell interpolation. Closes a latent shell-injection vector in `src/gaia/util.py`. (Follow-up candidate: consolidate onto the `psutil`-based impl already used elsewhere.) - **fix(document-monitor): transition status to `missing` when file vanishes** (closes amd#791) — Flips DB status so `/api/documents` stops reporting a deleted file as `complete` and log spam stops after the first poll. - **fix(system): retain `asyncio.create_task` refs to prevent GC** (closes amd#788) — Adds a module-level `_background_tasks` set for `/api/system/load-model` and `/api/system/download-model`. Fixes a latent reliability bug where model downloads (7200s timeout) could be cancelled mid-stream under GC pressure. - **fix(sse): add lock to tool confirmation flow** (closes amd#792) — `threading.Lock` around the reset/set critical sections in `confirm_tool_execution` / `resolve_tool_confirmation`. Closes a race where an early approval could be clobbered. - **fix(filebrowser): handle dotless filenames in extension parsing** (closes amd#793) — `README` no longer produces extension `.readme` in the unsupported-file error toast. - **fix(ui): allow horizontal table scroll on mobile** (closes amd#642) — `overflow: hidden` → `overflow-y: hidden` on `.msg-body` so the inner `.md-table-wrap` can scroll horizontally. ## Attribution All 7 commits carry CodeLine9 <[email protected]> as `Author:`. cc @CodeLine9 — thank you for the triage and the clean small-diff style; these are all worth having in main. ## Test plan - [ ] `python util/lint.py --black` passes on touched Python files (pre-existing `mcp_bridge.py` failure from amd#803 is unrelated) - [ ] Launch Lemonade from `gaia` on Linux; confirm `--ctx-size` is respected (previously silently dropped) - [ ] `gaia chat --ui`, upload a file, delete it from disk, wait >30s; confirm `/api/documents` flips to `indexing_status: "missing"` - [ ] Agent UI webui builds (`cd src/gaia/apps/webui && npm run build`) - [ ] Mobile viewport: table in chat message scrolls horizontally - [ ] Smoke: `/api/system/download-model` survives a forced `gc.collect()` cycle mid-download --------- Co-authored-by: CodeLine9 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bug
Tables in chat messages are not horizontally scrollable on mobile. The
.msg-bodycontainer hasoverflow: hiddenwhich clips the.md-table-wrapscroll container, preventing the table from scrolling horizontally.Fix
Change
overflow: hiddentooverflow-y: hiddenon.msg-body. This preserves vertical clipping while allowing the table wrapper'soverflow-x: autoto work.Closes #642