Repository navigation
Studio follows the film's files and opens a stop on what it asks about - #241
Merged
Merged
Conversation
…picked up; nothing a person submits is lost
The first real film lost a batch of 12 notes written after their round had been taken, showed "正在取" while nobody would
take anything, and let one storyboard submission end the outline re-review's wait too.
- feedback.py: .consumed records who took what (when, which run, which agent program); a wait claims under the lock, so
two waits never both hand one submission over; a wait is for one round and ends (exit 7) when its page is no longer
out; it first hands over every submission nobody took or answered, of any round, a later batch said as such; the
default wait is 12 h (was 7100 s).
- status.py: notes nobody took come before any other next step (review.unread, an "unread:" line); a later page of a
decided gate ① (1b) waits for the person; holder says which agent program holds the film and whether outside Studio.
- standing.py: "正在取" only for a live wait on the round that is out; notes_late / notes_left say who picks notes up;
an agent outside Studio's window is named, with a second AI here only as a confirmed second line.
- Studio: the notes block shows each note's state, pinned above the note box; a taken round's new notes go as a later
batch ("补交"), said before and after sending; "先改" with no note asks once; the conversation tab asks before it
starts a second AI on a film an outside agent holds.
- Checks: replays of the lost batch, one submission ending two waits, two waits on one note, a timeout leaving notes,
the outside agent (test_agents.py handoff); the page in a headless Chrome (test_page.py, page_driver.mjs).
…s out the outside-agent line (the agent reading it is that agent); unread counts only submissions as Studio saves them; the output schemas name the new codes and fields; the notes block's edge uses a theme colour
…each whole-film note its own once the note box keeps several); the agent column's check for adapters left behind looks only at its own desk's process tree, never by name, so two runs of the checks on one machine don't trip each other
The first real film's window kept a 9-part outline the agent had already cut to 7 and the script's first version after its fourth; a reload jumped to another page; four stops in six opened on the wrong page; clicking the script tab put the stop's explanations above it and pushed what was reviewed far down. - server.py: files_stamp (the documents, shot and edit lists, review pages, .current) in the status poll and the data. - studio.js: the page reloads in place when the stamp moves (module, tab, scroll, playhead and drafts kept; not while the person types, the send sheet is open or the film plays) and says so; a draft on a place that is gone says so. - A stop opens on what it asks about (stopMod / stopSub): a gate ① page with no concept cards on the outline, E1 on the outline's script tab; used by the gate route, the first open, the follow, the column and stopPage. - A module the page picked itself is written into the address (replaceState): rail clicks work after a follow, a reload stays. - The stop's page on a module tab: its summary above the tabs, the rest after the tab's content. - test_page.py: four page checks (where a stop opens, the follow and reload, the outline rewritten while open, the tab row), each failing on the hand-over PR's code alone.
…otes block holds from 1280x720; A10 asks only when the page says so - feedback.py: a hand-over is two steps. claim() writes an unconfirmed claim (pid, when) under the lock; the note is written and flushed; only then confirm() makes it taken. A claim whose process is gone is no claim; a signal releases this process's claims; a closed or broken output releases them and ends the wait with 74. unread() counts every unconfirmed note; taken() only confirmed ones. A wait started orphaned hands nothing over. New submissions are looked at before the page-changed check, so exit 7's "nothing was submitted" is true. "late" needs a hand-over recorded by this version. One WAIT constant for desk wait and gate --wait. - status.py: the stop's row and next: name one command, bin/vh desk wait. - standing.py, agent.js, core.js: an outside agent is "open" on the film, never said to be working. - Studio: the column is two parts, what to decide scrolling above and the notes block below (at most half the column), so the block holds from 1280x720 in every theme and in English; drafts on a page the agent replaced are listed as not sent and go to that page's own round, or are dropped, on the person's click; A10 asks only for an option with needs_note (gate --init writes it on gate 3's FIX), documented with the gate JSON. - Checks: a wait killed in the claim-to-write gap (KILL, TERM, INT) and one with a closed output leave the note unread; two waits held at the claim and released together hand it over once (fails without the lock); the layout at both sizes, three themes, English; drafts of a replaced page; "no change" options never ask; the page check stops its own desk's process tree; the handoff group ends the stand-in it builds. - playbook 01 and the skill: on return, bin/vh status, then bin/vh desk wait; what to do when the host ended a wait.
…-window-follows-files # Conflicts: # tools/desk/static/core.js # tools/desk/static/studio.css # tools/desk/test_page.py
…r-trust-59e5a0 # Conflicts: # tools/desk/static/studio.js
…-window-follows-files # Conflicts: # tools/desk/static/studio.js
… a lock that is gone as naming nothing (GitHub's macOS runner: the turn ended between the look and the read)
…-window-follows-files
…s the hand-over PR's last head, which this branch already holds
… it, the stamps are taken before the read, and a new page waits for typing - A kept note remembers its place's words (an outline part's title and words, a script line, a shot). After the files change it stays, goes where its content went (new number and time, "原来是第 3 段" once), or says its place changed (never drawn on what took it, no click, sent saying so) or is gone; putting the files back puts it back. - files_stamp and notes_stamp are taken before the film is read; the narration's timing is in the stamp; the status poll's round is the readable pages' own. - The scroll comes back after the stop's page part has loaded; busy is a text box typed in within 30 s, not focus; a new page is followed only when the person did not go elsewhere by choice (then a toast and the column's way there), with a history entry of its own. - A stop's summary above the tabs keeps to two lines, whole below. - New page checks for each, with conditions instead of fixed waits.
ZLHad
marked this pull request as ready for review
November 23, 2026 12:47
ZLHad
enabled auto-merge (squash)
November 23, 2026 12:47
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.
Follows #240 (the hand-over, landed on main as dd4f75f): main is merged in, so this diff is only the window's part. Fixes A4, A5 and B4 of the first-film review, and the eight items of this PR's independent review.
What the person saw
Reproduced on a made-up film before the change:
What changed
tools/desk/server.pyfiles_stamp: the mtime and size of what the page is drawn from (the documents,shots.json,edit.json, the review pages,.current, and the narration's timingaudio/timeline.<lang>.json,out/edit.timeline.<lang>.json), in the status poll and the data.files_stampandnotes_stampare taken before the film is read: a file written during the read leaves the page one reload behind, never stale for good.roundcomes from the same place as the page's rounds (current_round, the readable pages only): a page half-written is not a new round, so the window neither follows it nor says anything.tools/desk/static/studio.jsPutting the files back puts every note back where it was written.
stopMod,stopSub): a gate ① page with no concept cards (1b, an outline-only gate ①) on the outline, with its question in the column; E1 on the outline's script tab; the rest as before. A gate ① card counts as a concept card when it has aframe, as the repo's rule for concept cards says; one without opens on the outline.pushState), so Back returns.replaceState), so a rail click after a follow works and a reload stays.core.js: new keys only (ho_files,ho_gone,ho_changed,ho_changed_here,ho_moved_seg,ho_moved,ho_newpage); existing strings unchanged.tools/desk/README.md: the page reads the files again, notes and what they were written on, where a stop opens,files_stamp, the page checks.Checks that fail without it
Page checks in
tools/desk/test_page.py; each new one fails on #240's code alone, and the waits are conditions, not fixed times:With #240's page checks and #239's cut-page check, all pass together on this head. Full local
tools/ci.sh --committedgreen on the head.Looked at by eye
On an isolated desk with made-up films:
Not looked at