Repository navigation
Collect a routine report's files by the turn that sent them - #5179
XiaoleiShi-NV wants to merge 1 commit into
Conversation
|
@XiaoleiShi-NV is attempting to deploy a commit to the SupaMaus Team on Vercel. A member of the Team first needs to authorize it. |
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
5372a06 to
11a5b46
Compare
A routine's report took the files of every line between the person's last line and the next, so it also carried the files of an earlier turn of the run, or of a goal that ran in the same stretch, and lost the files sent before a goal queued while its turn worked. A line attach_file posts now records the turn that sent it (sentInTurn), and the report carries the files of the reply's turn only: its attach_file lines, then the reply's own generated images and voice notes, without the images its tools returned. A reply that names no turn carries only its own files. A report held while its chat was busy kept no record of a turn that said and sent nothing, so a run resumed after a failure re-posted the earlier turn's reply instead of saying it recovered. After a restart, a report whose last turn only sent files was read from the earlier turn's reply. A held report now remembers that its turn said nothing, and after a restart the last turn is found by the lines it settled on or the files it sent.
11a5b46 to
6117673
Compare
|
@milind-soni could you take a look at this when you have a moment? It's the follow-up to #4771, whose first version went in through #4827. It was rebased on |
Main already brings the files a routine sent with
attach_fileinto its report, without the images its tools returned: that is the first version of #4771, merged through #4827. Main finds the files by walking from the reply to the person's lines around it. So a report could also carry the files of an earlier turn of the run, or of a goal that ran in between, and lose the files sent before a goal queued while the turn worked. It also missed two cases: after a restart, a turn that only sent files was read from the earlier turn's reply; and a run resumed after a failure whose turn said and sent nothing re-posted the earlier reply instead of saying it recovered. This change replaces the walking with turn ownership. It is the follow-up to #4771, moved here so it can be reviewed on its own.attach_filerecords the provider turn that sent it, in a new optional fieldsentInTurn. It is kept apart fromturnId, so the last line with aturnIdis still the turn's reply. The field lives on the server's message type, not onWireMessage, because only the server reads it.turnIdorsentInTurnis that turn, without images markedfromTool. The person's lines, goals and other turns in the run conversation don't affect it. A reply that names no turn carries only its own files.Known gaps:
deliver: "brief") are unchanged. The brief reads a run's answer as text only and has nowhere to show files.Summary by CodeRabbit