mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #4865] [GUI] keep tool Approve cards under the latest reply #5221
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#5221
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/4865
Author: @realno
Created: 11/1/2026
Status: 🔄 Open
Base:
main← Head:ui-improvements📝 Commits (3)
1779252Keep tool approval prompt popup at the bottom of the conversatione6381e1fix an issue where the error messages moved to wrong position142d470[GUI] Restore package-lock.json to main and name the tool-row test for running tools📊 Changes
3 files changed (+51 additions, -5 deletions)
View changed files
📝
apps/host/scripts/dev.mjs(+30 -1)📝
apps/host/src/screens/Chat.tsx(+9 -4)📝
apps/host/tests/tool-rows.test.mjs(+12 -0)📄 Description
Problem and result
When the model asked for Manual tool approval, the Approve/Deny card sat above the assistant reply. Long thought or output pushed the card out of view, so it looked like the request had been denied or never shown.
After this change, finished and failed tool rows stay above the reply (where the work happened). Only waiting and running tool cards sit after the latest output, so Approve stays next to what just scrolled into view. Activity lines still get a bubble while tools run, so their expand control keeps working.
Related discussion
none
Approach
Split each message’s tools into settled vs live in
Chat.tsx: settled (and failed) render before the bubble;proposed/runningrender after it. Open the bubble when the message has activity blocks, not only when there is text or an error, so expand stays usable during a run.Also,
npm run devnow picks up an installed desktop Harness whenSTRATA_HARNESS_DIRis unset, so Manual approvals work in local host/web without a separate Harness checkout. No default runtime path for users of the packaged app.Validation
Passed:
npm testinapps/hostone6381e12(Windows, Node from the host package): 1151 tests passed, including the new layout check that settled tools stay above the reply and live Approve cards sit after itnpm run dev: Manual Approve/Deny appears under the latest assistant output; failed tool rows stay above the reply; activity-line expand still works while a tool is liveFailed:
EPERMsymlink failures in the host test run are unrelated to the chat layout)Not run:
Limits
Harness auto-detect in
dev.mjsonly helps when the desktop app’s harness is already installed on the machine; Linux has no default install path in that script. Packaged-app behavior is unchanged.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.