Spaces:
Running
Running
Prevent AskUser card fade in Space
Browse files- README.md +8 -0
- frontend/static/app.js +3 -2
README.md
CHANGED
|
@@ -37,6 +37,9 @@ Maintenance rule:
|
|
| 37 |
- Space-only deployment logic must not be copied back into the main repo unless
|
| 38 |
it is genuinely general-purpose.
|
| 39 |
- Public documentation should be updated in the main repo, not duplicated here.
|
|
|
|
|
|
|
|
|
|
| 40 |
|
| 41 |
## Sync Policy
|
| 42 |
|
|
@@ -44,6 +47,11 @@ The Space should stay small and deployment-focused. When the main repository
|
|
| 44 |
changes, sync only the files needed by the hosted browser app, then inspect the
|
| 45 |
diff manually. Do not copy the whole main repository into this Space.
|
| 46 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 47 |
### Fully Synced From The Main Repository
|
| 48 |
|
| 49 |
These files/directories should normally match the main repo exactly, unless a
|
|
|
|
| 37 |
- Space-only deployment logic must not be copied back into the main repo unless
|
| 38 |
it is genuinely general-purpose.
|
| 39 |
- Public documentation should be updated in the main repo, not duplicated here.
|
| 40 |
+
- Treat the tables below as the sync boundary. Fully synced files may be copied
|
| 41 |
+
from the main repo and diff-checked. Partially synced files must be updated
|
| 42 |
+
with targeted patches only; do not overwrite them with main-repo files.
|
| 43 |
|
| 44 |
## Sync Policy
|
| 45 |
|
|
|
|
| 47 |
changes, sync only the files needed by the hosted browser app, then inspect the
|
| 48 |
diff manually. Do not copy the whole main repository into this Space.
|
| 49 |
|
| 50 |
+
For partially synced files, a clean sync means the diff contains only the
|
| 51 |
+
specific hunk needed for the current bug or feature. If a full-file copy creates
|
| 52 |
+
large unrelated changes, restore the Space version from `HEAD` and reapply the
|
| 53 |
+
minimal patch.
|
| 54 |
+
|
| 55 |
### Fully Synced From The Main Repository
|
| 56 |
|
| 57 |
These files/directories should normally match the main repo exactly, unless a
|
frontend/static/app.js
CHANGED
|
@@ -505,7 +505,8 @@
|
|
| 505 |
var body = eventBody(node);
|
| 506 |
var toggle = node.querySelector(".event-toggle");
|
| 507 |
if (!body) return;
|
| 508 |
-
var shouldCollapse =
|
|
|
|
| 509 |
node.classList.toggle("can-collapse", shouldCollapse);
|
| 510 |
if (toggle) toggle.hidden = !shouldCollapse;
|
| 511 |
if (!shouldCollapse) {
|
|
@@ -731,7 +732,7 @@
|
|
| 731 |
var context = message.context || "";
|
| 732 |
var body = "<pre>" + escapeHtml(question) + "</pre>";
|
| 733 |
if (context) body += '<pre class="muted-text">' + escapeHtml(context) + "</pre>";
|
| 734 |
-
addEvent("
|
| 735 |
setStatus("Waiting for input", "running");
|
| 736 |
updateComposerMode();
|
| 737 |
promptInput.focus();
|
|
|
|
| 505 |
var body = eventBody(node);
|
| 506 |
var toggle = node.querySelector(".event-toggle");
|
| 507 |
if (!body) return;
|
| 508 |
+
var shouldCollapse = !node.classList.contains("event-ask-user")
|
| 509 |
+
&& body.scrollHeight > COLLAPSED_STEP_HEIGHT + 8;
|
| 510 |
node.classList.toggle("can-collapse", shouldCollapse);
|
| 511 |
if (toggle) toggle.hidden = !shouldCollapse;
|
| 512 |
if (!shouldCollapse) {
|
|
|
|
| 732 |
var context = message.context || "";
|
| 733 |
var body = "<pre>" + escapeHtml(question) + "</pre>";
|
| 734 |
if (context) body += '<pre class="muted-text">' + escapeHtml(context) + "</pre>";
|
| 735 |
+
addEvent("ask-user", "Agent question", body, ["AskUser"]);
|
| 736 |
setStatus("Waiting for input", "running");
|
| 737 |
updateComposerMode();
|
| 738 |
promptInput.focus();
|