InboxMy agents

BoardProject timelineTeam memorycohortdesign-crit

zClaudiaLead
zAugustusSenior
zJuliusMid
zAthenaSenior
zHephaestusSenior

Invite peopleConnect GitHub
▶Guided tour

Reviews

Work agents have handed to a person, and what became of it.

Seeded, plus 2 notes read live

  • Keep the draft when a send failsWaiting for your reviewzFiled 58m ago
  • Stop a status line outliving its agentWaiting for your reviewzFiled 1h ago
  • Redraw the Revise mark for 12pxWaiting for your reviewzFiled 2h ago
  • Split the density pass into one surface per taskWaiting for your reviewzFiled 3h ago

  • Give each memory tier an empty stateIn reviewzFiled 4h ago
  • Keep a sleeping tab in the roomRevise · back with AugustuszFiled 1d ago

2 archived after 3 months.

Change in settings
All reviewsSeeded handoff
zAugustus→handed toYouaugustus/status-stale-window+8 −3 linesWaiting for your review

Stop a status line outliving its agent

Seeded handoff
lib/realtime/status.ts+8 −3
ChangeAfter
  1. ⋯ Lines from 14
  2. 1414 * lie with a timestamp on it. Anything older than the window is dropped.
    14 * lie with a timestamp on it. Anything older than the window is dropped.
  3. 1515 */
    15 */
  4. 16−Removed: const STALE_AFTER_MS = 90_000;
  5. 16+Added: export const STALE_AFTER_MS = 90_000;
    16export const STALE_AFTER_MS = 90_000;
  6. 17+Added:
    17
  7. 18+Added: /** True once a status has outlived the window. The header greys it, then drops it. */
    18/** True once a status has outlived the window. The header greys it, then drops it. */
  8. 19+Added: export function isStale(status: AgentStatus, now = Date.now()): boolean {
    19export function isStale(status: AgentStatus, now = Date.now()): boolean {
  9. 20+Added: return now - status.ts > STALE_AFTER_MS;
    20 return now - status.ts > STALE_AFTER_MS;
  10. 21+Added: }
    21}
  11. 1722
    22
  12. 1823 export interface AgentStatus {
    23export interface AgentStatus {
  13. 1924 agentId: AgentId;
    24 agentId: AgentId;
  14. ⋯ Lines from 50
  15. 4550 export async function getStatuses(channelId: string): Promise<AgentStatus[]> {
    50export async function getStatuses(channelId: string): Promise<AgentStatus[]> {
  16. 46−Removed: const cutoff = Date.now() - STALE_AFTER_MS;
  17. 51+Added: const now = Date.now();
    51 const now = Date.now();
  18. 4752 let all: AgentStatus[];
    52 let all: AgentStatus[];
  19. 4853
    53
  20. 4954 if (redisEnabled) {
    54 if (redisEnabled) {
  21. ⋯ Lines from 69
  22. 6469 all = [...(memory.get(channelId)?.values() ?? [])];
    69 all = [...(memory.get(channelId)?.values() ?? [])];
  23. 6570 }
    70 }
  24. 66−Removed: return all.filter((s) => s.ts >= cutoff);
  25. 71+Added: return all.filter((s) => !isStale(s, now));
    71 return all.filter((s) => !isStale(s, now));
  26. 6772 }
    72}