Skip to content

While you were away: what the team did since you were last here - #69

Merged
danielehrhardt merged 1 commit into
mainfrom
feat/while-away
Oct 4, 2026
Merged

danielehrhardt merged 1 commit into
mainfrom
feat/while-away

Conversation

@danielehrhardt

Copy link
Copy Markdown
Contributor

Like coming back to the office: when you return after a while, Home first tells you what your team did.

  • When: after at least two hours without your input (pointer, keys or wheel in a focused window, not just focus). The last time is kept per computer in localStorage, so every window and restart agrees; a window re-reads it before deciding. Close the card with ×.
  • What (GET /api/away?since=, services/away.ts):
    • runs that ended (checks left out) and how many failed
    • tickets delivered
    • the cost, from the spend ledger
    • who worked: runs per agent, adding up to the total
    • up to six things worth a look, each a link: delivered tickets first, then problems in chats and automations, then replies, newest first, one line per chat or automation
  • Cloud: allowed. Phone: closed (not on its allow-list).

Checks:

  • New test/away.test.ts: replies, problems, a delivered ticket, a failed automation, the cost, who worked (adds up), nothing-since, HTTP 200/400 and the phone's refusal.
  • Full core suite 1413 pass, 0 fail. Desktop typecheck passes.
  • Browser: with the last activity set to 3 hours ago, the next click showed the card with "8 runs finished · 4 problems · $0.03 spent", Bo 3 · Lena 2 · Scout 2 · Godmode 1, the problems first, then the replies.

…as last here

After two hours or more without the human's input, Home first shows what happened meanwhile: runs that ended and how
many failed, tickets delivered, what it cost, who worked, and up to six things worth a look (delivered tickets,
problems, replies) — each a link. GET /api/away?since=, computed from runs, the spend ledger and ticket events.
@danielehrhardt
danielehrhardt merged commit 360bf77 into main Oct 4, 2026
5 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant