fix(webui): keep saved topics bound to their project (#6509)
* fix(webui): keep saved topics bound to their project Lock the project as soon as the session exists, independently of loaded history. Validate both explicit updates and message admissions against the persisted directory while retaining same-project permission changes. Related to #6505. Co-authored-by: Xiaoyu-hub <17346801517@163.com> * test(agent): retain goal shutdown failure stacks Use the existing stop_loop diagnostic without changing the five-second teardown deadline or the goal assertions. The Windows failure on #6509 reached session shutdown but did not capture its worker stacks. * test(cron): await rearm tick completion instead of disk timing The Windows run completed the first and last jobs correctly, but rescheduling took over three seconds inside a two-second timeout. Await the original timer task, detect an early exit before callback entry, and preserve job-order, cancellation, persistence and rearming assertions. Keep real disk writes and all parameterized cases. Also place the goal-shutdown diagnostic import in the existing first-party group. --------- Co-authored-by: Xiaoyu-hub <17346801517@163.com>
This commit is contained in:
1 parent
8f7a7d1759
commit
4a14faa47e
17 files changed
+241
-85
No files matched your search
@@ -791,10 +791,8 @@ export function ThreadShell({
|
||||
|
||||
const showHeroComposer = displayMessages.length === 0 && !initialHistoryLoading;
|
||||
const composerVariant = showHeroComposer ? emptyComposerVariant : "thread";
|
||||
// The server owns the project lock. Old servers have no marker, so an existing
|
||||
// user turn is read-only here too; the gateway remains the editing authority.
|
||||
const projectLocked = session?.projectLocked === true
|
||||
|| (session?.projectLocked === undefined && displayMessages.some((message) => message.role === "user" && message.deliveryStatus !== "failed"));
|
||||
// Only unpersisted drafts can choose a project; history pages do not own this state.
|
||||
const projectLocked = !!session && session.projectLocked !== false;
|
||||
const wasShowingHeroComposerRef = useRef(showHeroComposer);
|
||||
const sessionModelPreset = session?.modelPreset?.trim() || null;
|
||||
const [localModelPreset, setLocalModelPreset] = useState<string | null>(null);
|
||||
|
||||
Reference in new issue
Block a user