Commit Graph
179 Commits
Author SHA1 Message Date
davidandClaude Opus 5.5 f7989748dd PLAN.md: investigate the Arch logo at boot
shellcheck / shellcheck (push) Successful in 18s
The login screen now shows the CoreDesktop logo; the boot logo is still
Arch's on some machines. Note what was found on the NUC and how to find
what draws it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 06:32:09 -07:00
davidandClaude Opus 5.5 ba4dc17af1 Show the CoreDesktop logo on GNOME's login screen
shellcheck / shellcheck (push) Successful in 18s
Arch's gdm package sets the login screen logo to the Arch logo in a
30_ gschema override. A 40_ override wins over it; Arch's GDM dconf
profile doesn't read /etc/dconf/db/gdm.d, so that route has no effect.
install.sh runs system/login-logo.sh, and a migration runs it on
existing machines.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 06:29:19 -07:00
davidandClaude Opus 5.5 71634875e2 Packages: add llmfit, which tells which LLM models run best on this hardware
shellcheck / shellcheck (push) Successful in 52s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 05:42:41 -07:00
davidandClaude Opus 5.5 deb480da71 Merge smoketest-siblings: sibling projects in the smoketest, and the bugs it found
shellcheck / shellcheck (push) Successful in 18s
Sibling projects (HamPack first) can now have smoketest scenarios run on top
of CoreDesktop's, with coredesktop-dev smoketest --with. Their first runs
found three install bugs, fixed here: sibling add on a system not upgraded
lately, and install.sh failing when its upgrade replaced the kernel (now
kept working with kernel-modules-hook).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 04:41:49 -07:00
davidandClaude Opus 5.5 1e2581dcc5 Keep the running kernel's modules after a kernel upgrade
shellcheck / shellcheck (push) Successful in 48s
install.sh failed whenever its upgrade replaced the kernel (Arch installed
a few days earlier): pacman deletes the running kernel's modules, so Docker
and then the firewall couldn't load theirs. The smoketest found it.

kernel-modules-hook keeps them until the next reboot, and its cleanup
service removes them after. install.sh installs it with archlinux-keyring,
in a transaction of its own so its hooks run for the upgrade; packages.conf
lists it and the service, so update adds them to existing machines.

With the modules kept, a missing modules folder no longer means a newer
kernel was installed, so newer_kernel_installed (utils.sh) also counts a
folder no package owns, and the reboot check, version and finish-install
use it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 18:41:50 -07:00
davidandClaude Opus 5.5 6dfd62610a install.sh: don't start Docker on a kernel the install just replaced
If install.sh upgrades the kernel (Arch installed a few days earlier), the
running kernel's modules are gone until a reboot, so Docker, which needs
overlay, bridge and netfilter modules, fails to start and stops the
install. Enable it either way, and start it only if the running kernel's
modules are there; otherwise it starts after the reboot the install ends
with. The smoketest found this building its installed image on a ten-day-old
base image.

Also have the smoketest's progress ticker show a log line with binary
bytes in it, rather than grep's "binary file matches".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 17:26:56 -07:00
davidandClaude Opus 5.5 259f9063e8 sibling add: run update first on a system not upgraded for a day
shellcheck / shellcheck (push) Successful in 19s
A sibling's install.sh installs packages from pacman's package lists. On a
system not upgraded for a week or so, those name versions the mirrors have
deleted, so the install fails with 404s: HamPack's smoketest found this,
adding HamPack to a ten-day-old install. Only update may upgrade the
system, so sibling add now runs it first when pacman's log says the last
full upgrade is over a day old (or doesn't say). Not when update or
install.sh is running it, and a failing update doesn't stop the add.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 13:15:03 -07:00
davidandClaude Opus 5.5 4f1e18200c Smoketest sibling projects on top of CoreDesktop
The scenario helpers now take a chain of projects from the driver
(SMOKETEST_CHAIN_FILE): CoreDesktop, then sibling projects such as HamPack.
Each gets a fake upstream in the VM; upstream_set and upstream_commit take
an optional project name; smoketest_prepare updates every project in the
installed image; and the new smoketest_build_layer, sibling_add and
install_chain install them. health also runs each installed sibling's
smoketest/health, and a sibling's smoketest/setup runs before each scenario.

Without a chain file, everything works as before, so older drivers and
CoreDesktop's own scenarios are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 10:15:10 -07:00
davidandClaude Opus 5.5 01d24327d9 AUR update: name the packages that failed at the end
shellcheck / shellcheck (push) Successful in 18s
yay installs the other AUR updates after one fails, and its error ends up
thousands of lines above the end of the log (reports CD-EJEKVU and
CD-278CL3: flrig 2.0.12-1 has an extra checksum in its PKGBUILD). Now
20-aur.sh lists what's still out of date and says the next update tries
again. The hook still fails, so these still get reported.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 05:51:07 -07:00
davidandClaude Opus 5.5 4fb35397ee Claude notifications: clicking one brings back the app Claude runs in
shellcheck / shellcheck (push) Successful in 18s
The hooks ran notify-send from inside Claude, so GNOME couldn't tell which
app the notification came from and clicking it did nothing. system/claude-notify
finds the terminal or editor among Claude's parent processes (or tmux's
client, or the Flatpak) and names it in the desktop-entry hint. The title
shows the project folder and the body Claude's own message.

claude.sh swaps the old notify-send hooks for it, only where they're still
the ones CoreDesktop wrote, and 70-claude.sh now runs claude.sh on every
update so existing machines get it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 07:52:09 -07:00
davidandClaude Opus 5.5 774ff3f673 Tailnet discovery skill: built in 16e5a9c, only the headscale checks remain
shellcheck / shellcheck (push) Failing after 1m24s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 14:13:08 -07:00
davidandClaude Opus 5.5 1870f3723a Security checks skill: the new report receiver is deployed
shellcheck / shellcheck (push) Failing after 1m0s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 14:06:39 -07:00
davidandClaude Opus 5.5 5bde022c9a PLAN.md: the new report receiver is deployed
shellcheck / shellcheck (push) Failing after 21s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 13:51:33 -07:00
davidandClaude Opus 5.5 2915917f15 Report receiver: say whether a report came from MiniServer or CoreDesktop
shellcheck / shellcheck (push) Failing after 22s
Every issue said it came from CoreDesktop. MiniServer's reports send a
version starting with "MiniServer ", so sender() reads the product from
that, and the issue's version row and footer now name it, with the prefix
taken off the version.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 13:42:13 -07:00
davidandClaude Opus 5.5 af3eff6c92 Add PLAN.md to track what's left to do
One list of the open items from the three plans kept as project skills
(the Pop!_OS merge, tailnet discovery, the security checks), each pointing
to its skill for the detail, plus a place for small tasks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 13:41:04 -07:00
davidandClaude Opus 5.5 d456e31192 Build a failed initramfs again, and don't offer a reboot until it builds
When mkinitcpio fails during an update or install, run it once more. If
that fails too, say why (a full /boot, a hook or module that isn't
installed) and don't offer a reboot. The install now logs its upgrade and
checks the build before finish-install offers one, and nvidia.sh's rebuild
no longer stops the install. A failed build is carried into the next
update's log, so it's rebuilt and checked until it builds.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 07:34:51 -07:00
davidandClaude Opus 5.5 16e5a9c79d Find storage and AI servers on the tailnet, not only over mDNS
shellcheck / shellcheck (push) Failing after 18s
configure storage and configure ai-servers now also ask the other online
computers on the Core's tailnet, so a laptop away from home still finds the
MiniServer and the LLM box. A machine found both ways is listed once, by its
tailnet name, and tailnet servers mount at /mnt/<short name>.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 14:30:38 -07:00
davidandClaude Opus 5.5 7e80d37986 Plan: find storage and AI servers on the tailnet, not only over mDNS
shellcheck / shellcheck (push) Failing after 17s
configure storage and configure ai-servers find machines only over mDNS,
which stays on the LAN, so a laptop away from home finds nothing. This
skill holds the plan for also looking at the Core's tailnet: a
lib/tailnet.sh helper, probing tailnet peers in find_servers and
find_storage, listing a machine found both ways once, tests, and what
to check against headscale (MagicDNS, Online, the agent sandbox).

Nothing is built yet. Written from the MiniServer session, which now
runs Tailscale and joins the Core's headscale.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 14:22:26 -07:00
davidandClaude Opus 5.5 ffbaf71ba7 Keep other machines on the network from reaching Docker containers
shellcheck / shellcheck (push) Failing after 19s
60-security.sh now checks network exposure (step 4), from two other
machines made of network namespaces in the VM: one on private addresses,
like a neighbour on the same Wi-Fi, and one on public-looking ones. From
each, over IPv4 and IPv6: only SSH and LocalSend are open, a container's
published port can't be reached, containers still reach both machines,
and SSH takes keys only. It also checks ufw's rules and sshd -T.

It found that ufw-docker's rules let any private address (10/8,
172.16/12, 192.168/16) reach published ports, so anyone on a café's or
hotel's Wi-Fi could. system/docker-firewall.sh lets only Docker's own
bridges (docker0, br-+) past instead; firewall.sh runs it on a new
install and migration 1794878760 on existing machines. To let other
machines reach a container's port: sudo ufw-docker allow <container> <port>.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 07:32:44 -07:00
davidandClaude Opus 5.5 203754c632 README: Hermes' gateway reaches only a Matrix server you've allowed
shellcheck / shellcheck (push) Failing after 21s
Since e991264 the allowed server is in hermes.json, which configure
hermes asks about, not whatever Hermes' own settings name.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 07:29:00 -07:00
davidandClaude Opus 5.5 53c6c8b52e Test the install path
shellcheck / shellcheck (push) Failing after 20s
60-security.sh now also checks the way in: federated.sh sends wget to
install.sh on Gitea over HTTPS at every hop, plain HTTP goes to HTTPS
without serving the script, and a browser goes to the Install page.

For the [federated] repo, it checks that pacman.conf needs signatures on
packages and the database, gets them from Gitea over HTTPS, and lists
the repo after core and extra; that pacman trusts the pinned key; and
that Gitea's repository.key is that key alone. Then it serves a package
from a stand-in repo with [federated]'s settings and pacman's keyring:
pacman refuses it unsigned, signed by a key it doesn't have or doesn't
trust, or in a signed database but unsigned itself, and installs it when
its key is trusted.

It found nothing to fix. Each repo check was shown to fail with
[federated] weakened, moved above core, or its key deleted.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 17:38:56 -07:00
davidandClaude Opus 5.5 d5925fa551 Test that what root runs is root's alone
60-security.sh now also checks, in the smoketest VM, that each file
CoreDesktop installs for root (the pacman guard and hook, the captive
portal script, sshd, ufw and systemd settings, and after configure
security-key and fingerprint, the PAM files, the lid check and the key
list), and every folder above it, is root's and not writable by the
user; that nothing in /etc, /usr, /boot or /opt is the user's to write;
and that nothing root runs names a path in a home folder.

pam_env gives logins ~/.local/bin on PATH, so it checks that root's
PATH under sudo, sudo -i and systemd has only root's folders, also for
a user who types a password: tester's sudo needs none, and then PAM's
auth step, where Arch runs pam_env, never runs. With a security key
registered but not plugged in and fingerprints turned on, the password
still works for sudo and a wrong or missing one doesn't.

It found nothing to fix. Each check was shown to fail on a machine
broken the way it looks for.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 17:07:44 -07:00
davidandClaude Opus 5.5 e991264ddc Let Hermes' gateway reach only a Matrix server you've allowed
sandbox/setup.sh allowed Hermes' gateway the host in MATRIX_HOMESERVER
from ~/.hermes/.env, which Hermes can write from inside its sandbox. On
the next update, Hermes could have opened the way out to any host it
chose.

The allowed server is now in ~/.config/coredesktop/sandbox/hermes.json,
which no sandbox can write. configure hermes is to do while Hermes names
a server you haven't allowed, and asks about only that; update says so.
Only a plain host name counts, so it can't be a wildcard or carry escape
codes into the question. A migration carries over the server the
gateway's systemd drop-in allows now, so a working gateway keeps
working. sandbox/agent no longer takes domains from
COREDESKTOP_SANDBOX_DOMAINS, which nothing else used.

The security checks skill now records step 3 as done.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 16:13:32 -07:00
davidandClaude Opus 5.5 d974b91144 configure: treat an empty settings file like a missing one
edit_json created a settings file from its default only when it was
missing. jq reads no JSON from an empty file and writes nothing back, so
configure ai-servers said a server was added while the sandbox still
blocked it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 16:13:32 -07:00
davidandClaude Opus 5.5 05b13b2c18 Test the agent sandbox from inside, and hide CoreDesktop's settings
smoketest/scenarios/60-security.sh runs a script as opencode, Hermes and
Cline Desktop would run, through sandbox/bin's wrappers, and checks what
it can't do: read secrets (~/.ssh, ~/.gnupg, the keyring, Bitwarden,
~/.winboat, /etc/coredesktop/smb through sudo), write outside its folder
(home, ~/.bashrc, ~/.local/bin, systemd units, autostart, the sandbox's
own config, its project's git hooks and config), reach domains, LAN
addresses or loopback servers that aren't allowed, or see other
processes and the D-Bus session bus. Each check also runs outside the
sandbox, so a pass means the sandbox blocked it, not that nothing was
there. A write counts only if it reached the real file: srt puts an
empty, writable folder over a hidden one.

It found that agents could read ~/.config/coredesktop, which has the
Core's domain and user name; base.json now hides it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 16:00:17 -07:00
davidandClaude Opus 5.5 143473e798 Test the report receiver and redaction against attacks
shellcheck / shellcheck (push) Failing after 19s
server/report-receiver/test_security.py sends the receiver what anyone
on the internet could, and the Redaction tests in tests/report.bats feed
report logs full of secrets. Each test was checked to fail before its fix.

The receiver now refuses a negative Content-Length (read without limit),
parts nested thousands deep (a RecursionError dropped the connection)
and more than 20 parts (thousands took seconds of CPU to parse). It
counts an IPv6 address's /64 for the rate limit, since a home has a
whole /64 to send from. Report fields go into the Gitea issue as inline
code, and titles keep only the characters of step names and versions,
so a report can't @mention the team, link issues, or show a tracking
image. It refuses reports while its disk has less than 2 GB free.

report now also takes out passwords in URLs, Bearer and Basic tokens,
password= and token: values, API keys by their prefixes, Nextcloud app
passwords, private keys, IPv6 and MAC addresses, the Cores' domains and
the user's name. It reads the Core settings rather than sourcing them,
and escapes extended regex characters in names, which it didn't before.

The plan for the checks still to do, in the smoketest VM (the agent
sandbox, network exposure, what root runs, the install path), is a
Claude Code skill: /coredesktop-security-checks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 12:27:17 -07:00
davidandClaude Opus 5.5 9dc5eb193d Add upgrade safeguards, hardware setup, sign-in options and Taildrop from Omarchy
shellcheck / shellcheck (push) Failing after 19s
Adapted from Omarchy (github.com/omacom/omarchy) for Arch with GNOME:

- A pacman hook stops a full upgrade run without update (pacman -Syu,
  yay -Syu), which would skip the snapshot and update's checks. update
  and install.sh set COREDESKTOP_ALLOW_PACMAN=1, which the hook finds on
  pacman or any process above it; you can set it too.
- When the Arch upgrade stops on files no package owns, update lists
  them and asks to move them to /var/lib/coredesktop/replaced and try
  again, putting back what the retry didn't replace. When packages
  conflict, it runs pacman again so you can choose.
- update and install keep the computer from sleeping until they finish.
- system/hardware.sh (install, and a migration): the Wi-Fi country from
  the time zone, thermald and intel-lpmd on Intel laptops, and Wi-Fi 6
  on Intel BE200/BE211 cards, whose driver gets Wi-Fi 7 wrong.
- configure security-key and configure fingerprint: touch a FIDO2 key
  or a finger instead of typing your password for sudo and polkit,
  falling back to the password. Each shows only when the hardware is
  there. The fingerprint skips to the password with the lid shut.
- webapp: put a website in the app grid as its own app window.
- Taildrop: Files' Scripts > Send with Tailscale, and a user service
  that saves files sent here to Downloads, started when configure
  tailscale joins.
- A NetworkManager dispatcher script pauses a Tailscale exit node while
  you sign in to a captive portal, and resumes it once online.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 12:08:06 -07:00
davidandClaude Opus 5.5 5d7db2cdc8 Offer to reboot at the end of an install or update that needs one
shellcheck / shellcheck (push) Failing after 13s
update already said "Please reboot when convenient" after a new kernel,
firmware, microcode, NVIDIA driver, systemd or glibc. It now ends by
asking "Reboot now? [y/N]", after the offer to send a failed step's
log. 99-reboot-check.sh records that a reboot is needed, and update
clears that before its steps run, so an earlier update's reboot isn't
offered. Under script(1), the copy outside reboots once the log is
cleaned up. Never asked without a terminal, or when the initramfs
failed to rebuild.

install asks the same when it brought in a newer kernel.

Both reboot with systemctl, like the system menu's restart: sudo's
cached password belongs to another terminal by then.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 06:17:53 -07:00
davidandClaude Opus 5.5 902967f111 Sync Neovim's plugins once more if Neovim crashes
Neovim 0.12.6 segfaulted on the way out after a finished Lazy! sync
(report CD-P8RUBS), and the update step failed though the plugins were
up to date. If nvim dies from a signal, run the sync once more; it
fails if Neovim crashes again, and an ordinary failure isn't retried.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 06:10:38 -07:00
davidandClaude Opus 5.5 d1108698bb Add the plan for merging Pop!_OS support into configure
shellcheck / shellcheck (push) Failing after 14s
A Claude Code skill (/coredesktop-pop-merge) with the plan for folding
connector-popos, the Pop!_OS port of configure, back in here behind a
platform layer, so one Linux configure runs on Arch and Pop!_OS. It records
the facts verified while porting and the decisions still open, so the work
can be picked up later.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 14:42:30 -07:00
davidandClaude Opus 5.5 4a4a3bdd36 Report receiver: keep its log out of the test output
shellcheck / shellcheck (push) Failing after 17s
The receiver logs each report it files in Gitea, or fails to, from a
background thread. Those lines landed in the middle of the test results.
Capture stderr in each test instead, in self.stderr for tests that want
to check it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 06:13:20 -07:00
davidandClaude Opus 5.5 1c468948c6 version: show a spinner while it checks for updates
shellcheck / shellcheck (push) Failing after 18s
Checking for newer versions goes to the network and can take several
seconds with nothing on screen. Show "Checking for updates..." with a
spinner on the terminal until every check is done, then print the
results all at once. The spinner goes to stderr and only to a terminal.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 06:10:51 -07:00
davidandClaude Opus 5.5 b35ac7d137 Install srt without running its dependencies' install scripts
shellcheck / shellcheck (push) Failing after 17s
srt 0.0.82 optionally depends on @microsoft/mxc-sdk, for Windows
sandboxes, whose koffi and node-pty have install scripts that npm 12
blocks, so every update warned about them (report CD-GB29BZ). srt has
no install scripts of its own and loads that SDK only on Windows, so
--ignore-scripts drops the warning and changes nothing on Linux.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 12:54:55 -07:00
davidandClaude Opus 5.5 20a2f62300 report: keep four-part versions after v or ==
The IPv4 rule replaced not1mm's new version in "v26.11.10.1" and
"not1mm==26.11.10.1" with <ip> (report CD-GB29BZ), because only a digit
or dot before an address kept it. Also keep ones after v, V or ==; an
address after a single =, as in addr=192.168.1.20, is still replaced.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 12:54:55 -07:00
davidandClaude Opus 5.5 1507ae925e Say "CoreDesktop is installed." at the end of every install
shellcheck / shellcheck (push) Failing after 17s
When configure had nothing left to do, install.sh ended on the kernel check
and the firewall's warnings just above it, so a successful run could be taken
for a failure. Move the end of install.sh to system/finish-install.sh, which
now says the install worked before the reboot advice and configure offer, and
test it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 06:51:10 -07:00
davidandClaude Opus 5.5 43e227e3f3 Report receiver: don't log senders' addresses
shellcheck / shellcheck (push) Failing after 14s
The rate limit keeps addresses in memory, for at most a day; the log
lines don't need them, so the privacy policy can say they aren't stored.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 12:14:03 -07:00
davidandClaude Opus 5.5 a811c347b7 Report receiver: fix a race in its tests, and log Gitea's reasons
The first test checked that a report was no longer pending as soon as
its log reached the fake Gitea, a moment before the receiver marks it
filed, so it could fail; wait for the mark instead. The tests now close
their servers and error responses.

When Gitea refuses an issue or attachment, the receiver closes the reply
and logs Gitea's reason, such as a token without the right permission.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 11:43:51 -07:00
davidandClaude Opus 5.5 ce7cf08d60 Add the receiver that files error reports as Gitea issues
server/report-receiver/receiver.py takes what report sends to
federated.sh/report, behind Caddy, and files each report as an issue in
the private Federated_Computer/coredesktop-reports repository with the
full log attached. It saves each report before replying and tries Gitea
again later if it's down, limits how many reports one address can send,
and refuses oversized logs, gzip bombs included. Standard library only.

The README has the deployment steps: a Gitea user that can only file
issues there, the systemd unit, and the Caddy route. make test runs its
tests, which send reports with the real report client.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 11:36:43 -07:00
davidandClaude Opus 5.5 1cd56f7a90 report: accept a report ID that ends with a newline
Plain-text replies usually end with one, and the ID check counted it as
part of the ID, so a report that was sent was said to have failed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 11:36:43 -07:00
davidandClaude Opus 5.5 bd82063bbb Offer to send the log to us when an install or update fails
When update or install.sh fails and there's a terminal, ask whether to
send its log to the CoreDesktop team, with the option of reading exactly
what would be sent first. Nothing is sent without a yes, and nothing is
asked without a terminal. The new report command sends a log later
(report, report FILE) or shows what would be sent (report --view).

Before sending, the log is cleaned of terminal codes, and the home
folder, user name, host name, email addresses, IPv4 addresses and
Tailscale names are replaced. CoreDesktop's version, the kernel's, the
failed steps and sibling versions go along with it. The request format
the receiver on federated.sh implements is described at the top of
report.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 11:28:53 -07:00
davidandClaude Opus 5.5 a82bbfc2e1 Reinstall a damaged Neovim plugin instead of only stashing its changes
shellcheck / shellcheck (push) Failing after 15s
Stashing a plugin's mismatched files wasn't enough for LuaSnip: the
interrupted update had also left new files git won't overwrite and a
half-cloned submodule, so lazy.nvim still couldn't check out the new
version, and said nothing. Move such a plugin to
~/.local/state/coredesktop/nvim-plugins/ instead, so Lazy! sync installs
it afresh and any edits to it are kept. A plugin the earlier version of
this step stashed is moved the same way.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 11:08:49 -07:00
davidandClaude Opus 5.5 54f9e12526 Log each install and update, and keep only the recent logs
shellcheck / shellcheck (push) Failing after 17s
Each run's output now goes to ~/.local/state/coredesktop/logs/, so what
failed can be read after the terminal is gone. In a terminal, update runs
itself under script(1), so everything it runs still sees a terminal, then
strips color codes and progress redraws from the log; otherwise it uses
tee. install.sh, usually piped into bash, uses tee, and runs configure
straight on the terminal, outside the log. Both name the log when
something fails. 95-cleanup.sh keeps the newest 10 update logs and 3
install logs.

The sudo keepalive loops no longer share the logged output, so their
sleep can't hold the log open after the run ends.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 11:00:31 -07:00
davidandClaude Opus 5.5 c8b2f8473d Unstick plugins lazy.nvim won't update, and move to Thunderbird ESR
shellcheck / shellcheck (push) Failing after 17s
An interrupted plugin update can leave a plugin's files out of step with
its checkout, and lazy.nvim then refuses to update it, every time. Before
syncing, update now stashes such changes, so they can still be recovered
with git stash pop, and puts the plugin's submodules back.

Flathub retired org.mozilla.Thunderbird in favor of
org.mozilla.thunderbird_esr, so update tried to reinstall the old ID on
every run. Install the new one. flatpak update already moves existing
installs over; a migration carries a skip-packages entry for the old ID
over to the new one.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 10:51:49 -07:00
davidandClaude Opus 5.5 ee7451600b Show sibling projects' versions, and let version update them
shellcheck / shellcheck (push) Failing after 19s
A sibling's version is its latest git tag (v1.4.0, or v1.4.0+3 for commits
after it), or, without tags, its commit's date and short hash, like
CoreDesktop's own. The version shown as available is that of the newest
commit on the default branch, which is what update installs.

sibling list shows each sibling's version. sibling check fetches every
sibling at once and shows which have a newer version, and sibling update
[name...] updates the named siblings or all of them. 71-siblings.sh now
runs sibling update, so update and version share one way of updating.

version lists the installed siblings with any newer version and, when run
in a terminal, asks for each one whether to update it now. version --check
and the update notification still only look at CoreDesktop.

The sibling skill docs describe how to release a version by tagging it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 10:26:51 -07:00
davidandClaude Opus 5.5 318e858021 README: install with wget -qO- https://federated.sh | bash
shellcheck / shellcheck (push) Failing after 21s
federated.sh redirects wget and curl to install.sh on Gitea, and
browsers to the Install page, so the command is short enough to type.
Opening Gitea to copy the long command is no longer a step; link
install.sh for anyone who wants to read it first.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 09:17:56 -07:00
davidandClaude Opus 5.5 cf862ecab0 Leave Wi-Fi to NetworkManager when archinstall turned on iwd as well
shellcheck / shellcheck (push) Failing after 14s
archinstall's "Copy ISO network configuration", which a user who connected
with iwctl may pick, turns on iwd and systemd-networkd. CoreDesktop then
turns on NetworkManager too, and after a restart two services fight over
the Wi-Fi card. system/wifi.sh disables iwd and systemd-networkd, without
stopping them, when NetworkManager is enabled and isn't set to use iwd
itself. install.sh runs it, and a migration runs it on existing machines.
The README tells users to choose NetworkManager in archinstall.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-07 13:46:32 -07:00
davidandClaude Opus 5.5 e958e20431 Remove texlive from the install, with a migration for existing machines
shellcheck / shellcheck (push) Failing after 16s
Nothing in CoreDesktop uses LaTeX, and the texlive group is 22 packages
and about 3 GB. The migration removes it once, keeping any package from
the group that something else still needs as a dependency.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-07 13:31:09 -07:00
davidandClaude Opus 5.5 334bf5bbd8 smoketest: 30 runs a baseline's install once more if it fails
shellcheck / shellcheck (push) Failing after 16s
voxtype's build from source fails now and then at link time, with
Vulkan shaders missing: 0c0ddf5 built it in two runs and not the third,
with the same packages. The baseline isn't what's under test, and the
old installers skip what they already installed, so try once more.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 17:33:46 -07:00
davidandClaude Opus 5.5 55a65d332b smoketest: the fingerprint ignores blank lines in .bashrc
shellcheck / shellcheck (push) Failing after 16s
mise.run's installer added a blank line before its activate line, and
migrations/1793453501.sh removes only the activate line, so machines
installed before then keep a harmless blank line a fresh install lacks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 14:00:59 -07:00
davidandClaude Opus 5.5 b2a16471fd update: hand over cleanly from updates older than 2026-10-19
013acac's update (in use 2026-08-14 to 2026-10-19) copies the new update
over itself with sudo cp while bash is still reading it, so bash reads on
from byte 1484 of the new file: today, the middle of the logo, and the
update dies with a syntax error. Put a line at exactly that byte that
execs the new update, in a here-document a normal run skips. Found by
30-upgrade-from-baseline at ca658dc; the test replays 013acac's update.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 14:00:59 -07:00