mirror of
https://github.com/jparkerweb/plan2code.git
synced 2026-11-17 04:45:33 -08:00
Add the agent-less setup page, a shared agent list and the split Agents & models tab
AI Assisted
This commit is contained in:
1 parent
c122332657
commit
33f1783979
55 files changed
+5453
-1345
No files matched your search
@@ -237,8 +237,10 @@ export function chatAnswering(frameChat) {
|
||||
* adrift (anything else), which is also the only signal left once the server
|
||||
* is gone. An Ask message in hand (`answering`) stretches either to ASK_BUSY_MS.
|
||||
*/
|
||||
export function chatOffline({ finish, agent, agentLastSeenMs, now, answering = false }) {
|
||||
export function chatOffline({ finish, agent, agentLastSeenMs, now, answering = false, agentless = false }) {
|
||||
// An agent-less session never goes "offline": there is nobody to hear silence.
|
||||
if (agentless) return false;
|
||||
const silent = now - agentLastSeenMs;
|
||||
const limit = quietLimitMs(agent, agent && agent.status === "working" ? STALE_MS : ADRIFT_MS);
|
||||
const limit = quietLimitMs(agent, agent && agent.status === "working" ? STALE_MS : ADRIFT_MS, agentless);
|
||||
return silent > (answering ? Math.max(limit, ASK_BUSY_MS) : limit);
|
||||
}
|
||||
Reference in new issue
Block a user