Inbox: keep a linked machine's last list across a restart

Open
#3,778 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
62/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
typescript
Domain
backend

Research direction

Read the "A link's line" section of inbox-machines.md first, then find where machines.json is read and written to see the permission and layout conventions to copy. Trace where a linked machine's list is loaded at Inbox startup and where away rows are already rendered for offline machines; persist the last list beside machines.json and feed it into that same away-row path. Done when restarting the always-on machine still shows sleeping links' threads as away rows, with open/reply still waiting on the remote machine.

Written by the indexing model from the issue text.

Description

I read everything from one always-on machine's Inbox, linked to a desktop and a laptop that are often asleep. A linked machine's list is kept in memory only (inbox-machines.md, "A link's line": "when the viewing Inbox restarts while the other machine is away, its rows come back when that machine does (accepted: no copy on disk)").

So after an update or a reboot of the always-on machine, the sleeping machines' threads disappear from it until they wake. With a laptop closed for a few days, its open questions aren't visible anywhere I can reach. That works against the rule at the top of inbox-machines.md, that a linked machine's threads should feel like this machine's own.

Keeping each link's last list on disk (next to machines.json, with the same permissions) and showing it as away rows after a restart, the way an offline machine's rows already show, would cover this. Opening a thread or replying would still wait for that machine, as it does while it's away now.

Dominant language
TypeScript
Stars
8.7k
Forks
649
Avg merge
16h 1m
Merged PRs (30d)
756

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from backnotprop/plannotator

All issues in backnotprop/plannotator

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.