mirror of
https://github.com/jparkerweb/plan2code.git
synced 2026-11-18 21:01:19 -08:00
Clear a pressed Review when a different finish replaces it
AI Assisted
This commit is contained in:
1 parent
dd86279e88
commit
d4b604ba7f
6 files changed
+37
-1
No files matched your search
@@ -55,7 +55,7 @@ import { FOOTER_TIERS, footerLabel } from "../workspace.js";
|
||||
import {
|
||||
activity, agentAdrift, agentWorking, askBusy, loopDriving, loopWaiting, loopWaitingKey, asked, awaitingReply, byId, dashboardLive, docs, doingNow,
|
||||
AGENTS_VIEW, agentsTabShown, finish, gitAwaiting, isDashboard, isGitBoard, isOpen, isSpecFileView, items, loadAgentsDoc, loadOverview, myTurn, openItems,
|
||||
patience, pressStranded, reviewPending, scan, selSpec, sendCollected, specFileTabs, stagedCount, stranded,
|
||||
finishKey, patience, pressStranded, reviewPending, scan, selSpec, sendCollected, specFileTabs, stagedCount, stranded,
|
||||
topics, workingMs, WORKING_GRACE_MS,
|
||||
workspaceFolders,
|
||||
} from "../selectors.js";
|
||||
@@ -394,6 +394,15 @@ export function adopt(body) {
|
||||
// with its own offer unanswered.
|
||||
if (!finish() && page.local.afterBuild) {
|
||||
page.local.afterBuild = null;
|
||||
page.local.afterBuildFinish = null;
|
||||
save();
|
||||
}
|
||||
// Same when the agent took the review up and posted a different finish
|
||||
// without clearing the old one: the press was on the old finish, so the new
|
||||
// finish's Commit, Changelog and Dashboard start live.
|
||||
if (page.local.afterBuild === "review" && finish() && page.local.afterBuildFinish && page.local.afterBuildFinish !== finishKey(finish())) {
|
||||
page.local.afterBuild = null;
|
||||
page.local.afterBuildFinish = null;
|
||||
save();
|
||||
}
|
||||
// A way home that ended in a finish instead (the agent paused rather than
|
||||
|
||||
@@ -38,6 +38,7 @@ import {
|
||||
reviewPending,
|
||||
docs,
|
||||
finish,
|
||||
finishKey,
|
||||
agentAdrift,
|
||||
agentWorking,
|
||||
awaitingReply,
|
||||
@@ -645,6 +646,7 @@ async function sendAfterBuild(kind, launch = null) {
|
||||
}
|
||||
if (!res.ok) throw new Error(String(res.status));
|
||||
page.local.afterBuild = kind;
|
||||
page.local.afterBuildFinish = finishKey(finish());
|
||||
page.pendingResult = true;
|
||||
saveNow();
|
||||
const started = {
|
||||
|
||||
Reference in new issue
Block a user