After a push
What a new guide keeps from the last one, and what you need to look at again.
A guide generated after a push (Guide 2, Guide 3, …) starts from the last ready one. A change whose code the push didn't touch keeps its exact wording, your viewed mark and its comments, so re-review covers only what moved. For what a guide contains, see How Theseus works.
Check that a guide is current
Link to this sectionA guide describes one commit. As soon as Theseus sees a push, before any new guide exists, a banner says the guide is outdated:
| Banner | Meaning |
|---|---|
| This guide describes the outdated commit 1a2b3c4. The PR is now at 5d6e7f8. | The pull request has moved on. A new guide is being generated. is added once one has started |
| This guide describes an outdated comparison for commit 1a2b3c4. The PR is now at 5d6e7f8 against a different base. | The base branch changed |
| This guide is still being generated. | Go to Guide N opens the latest ready guide |
Go to Guide N appears on any of these once a newer guide is ready. The Theseus comment on the pull request keeps linking to the newest finished guide; while a new one generates, it marks that guide outdated and names the commit it's updating to. A guide that finishes late never replaces a newer one. A branch changeset has no pull request to watch, so a push there shows no banner until a guide for it starts; check with the CLI below.
From the CLI:
theseus changeset status example/project#42The Guide line reads Not ready yet, Ready, current with the pull request head, Ready, behind the pull request head, or Ready; currentness unknown. Treat unknown as not current. With --json, read behind_head (true, false or null).
Whether a push generates a guide on its own depends on the repository's run mode (see Connect GitHub). A push with no guide in progress starts one at once. While one is generating, Theseus waits until 15 seconds pass with no new push, then starts a guide for the latest commit. At most two run on a pull request at once; @theseusbot generate skips the wait but not that limit. A guide already generating finishes even after another push makes it outdated, and uses one guide from the allowance like any other. The exception is when both guides generating are for older commits: then the newer of them stops so the latest commit can start, and that guide goes back to the allowance.
To generate one yourself, or wait for one in progress:
theseus generate example/project#42 --wait
theseus wait example/project#42 --for readySee what the push changed
Link to this sectionThe change list marks each change against the previous guide, the same for everyone:
| Mark | Meaning |
|---|---|
| New (a star before the title) | Added in this guide |
| Updated (a circular arrow before the title) | Its code changed, or the push added code that finishes, tests or fixes what its title says. Wording is edited only where the new code required it; added code shows as new facts |
| none | Reads exactly as in the previous guide |
| Removed since Guide N | Struck through at the end of the list; hover a title to see why it went |
To compare a change with how it read before, open it and press [ to open the same change in the guide it came from, and ] to come back. A new change has no earlier version. To list only the changes the push touched, choose Modified since previous guide in the changes sidebar's filter.
Marks compare each guide with the newest guide that was ready when it started, usually the one before it. If you push while a guide is still generating, the next guide compares with the last ready one instead, so viewed marks on the guide in progress don't carry into it. The Summary and the rollout plan are written fresh every time. New and Updated changes get pictures drawn from their current wording, as in a first guide. An unmarked change keeps the pictures it had, unless the push moved the code they show, when they are drawn again. A change's Was line describes behavior at the pull request's comparison base, not at the previous push. Updating a change keeps that history unless a check against the source finds it incorrect; a final wording check cannot remove or rewrite it.
Some updates are handled differently from a plain push:
| Update | What happens |
|---|---|
| Rebase or retarget | Untouched changes carry over; changes in files the base also edited are checked again. Code the base brought in never counts as the pull request's |
| Title, description or linked issues edited | Changes keep their wording; the motivation is re-checked. If a rollout step quoted the edited text, the guide starts from scratch |
| A push that rewrites most of the pull request | The guide starts from scratch: nothing is marked or listed as removed |
| A push that would have more than 100 of the guide's changes checked or rewritten | The guide starts from scratch, as when the push rewrites most of the pull request |
| An update that runs out of tokens or hits the memory limit while carrying over earlier changes | If a retry and enough time remain, the same run starts from scratch without using another guide from the allowance |
To see how the code moved between two guides, open Ask Theseus and ask "What changed between Guide 1 and Guide 2?" (see Review a pull request).
What carries over
Link to this sectionViewed marks. A change carried word for word stays viewed. New and Updated changes, the Summary and the rollout plan start unviewed. Mark as not viewed on a carried change affects only the guide you're on.
Comments move only when what they were written on survives exactly:
| Written on | Moves when |
|---|---|
| The pull request as a whole | Always, to the new Summary, still quoting the old one |
| A change | The change carried word for word |
| A fact | The continuing change, even reworded, has the same fact word for word |
| Code lines | The file's contents are unchanged |
| A consequence or motivation item | The new guide has one with the same words |
| A rollout step | The new guide has a step with the same title and action |
| A review, as a reply | Never: a newer guide has its own reviews |
A carried comment shows a Carried forward badge; hover it to see where it came from. A comment that doesn't carry stays on its original guide; pick that guide in the guide picker in the changeset header to read it or reply.
Links. A link to a change opens it in the latest guide if that guide kept or updated it, or the latest guide's Summary if the change was removed. A link pinned to an older guide stays on that guide.
If generating fails
Link to this sectionThe previous guide, if any, stays on screen under a notice naming the commit that failed. Generate again retries for the newest commit and uses one guide from the workspace's allowance (see Plans and usage); on a branch it first asks which base to compare with. For a guide generated from a local checkout, run theseus generate there again. For anything else, see Troubleshooting.