Commit Graph

184 Commits

Author SHA1 Message Date
Chris Wanstrath
f0bef491a6
Merge pull request #11 from defunkt/claude/fix-app-rename-shutdown-IzD79
Make renameApp async and fix race condition on app restart
2026-02-12 08:15:35 -08:00
Claude
2f4d609290
Fix app rename failing with "port is taken" error
renameApp() killed the old process with .kill() but didn't wait for it
to actually exit before restarting on the same port. The OS still had
the port bound, causing the new process to fail with "port is taken".

Additionally, the old process's exit handler would fire after the rename
and corrupt the app's state—releasing the new process's port, setting
state to 'invalid', and nullifying the proc reference.

Fix by:
- Making renameApp async and awaiting proc.exited before proceeding
- Guarding the exit handler to bail out when a newer process has taken over

https://claude.ai/code/session_01W9GF8Cy7T6V2rnVcoNd1Nc
2026-02-12 16:13:59 +00:00
9c128eaddc tweak claude 2026-02-11 21:03:10 -08:00
6fa03413bd update claude 2026-02-11 20:55:59 -08:00
28e8d0db2c new claudes 2026-02-11 20:50:18 -08:00
2d7ec7d53a old apps 2026-02-11 19:55:03 -08:00
681a3f2f9e way simpler 2026-02-11 19:51:43 -08:00
b6e9ec73de .toes 2026-02-11 19:13:34 -08:00
10154dfd4f respect gitignore in toes status 2026-02-11 18:16:34 -08:00
Chris Wanstrath
c183fe42e9 set TOES_URL 2026-02-11 16:09:14 -08:00
Chris Wanstrath
74d7d2f578 shuffle 2026-02-10 11:15:16 -08:00
Chris Wanstrath
d94a4421f9 integrated cron logs, cron cli 2026-02-10 11:12:57 -08:00
Chris Wanstrath
c9986277ab scroll logs to bottom 2026-02-10 11:01:32 -08:00
Chris Wanstrath
f10830ee9b we did it 2026-02-10 10:50:23 -08:00
89ea6f586a toes diff pager 2026-02-10 08:09:00 -08:00
725f893592 reveal full env vals 2026-02-10 07:42:01 -08:00
579b082b48 legacy 2026-02-09 22:35:43 -08:00
bffa4236e7 detect renames 2026-02-09 22:03:49 -08:00
4a2223d3d7 smarter sync 2026-02-09 21:59:02 -08:00
79a0471383 toes history 2026-02-09 21:42:40 -08:00
115d3199e8 toes diff improvements 2026-02-09 21:40:48 -08:00
891b08ecd8 try to better detect failed process start 2026-02-09 21:32:48 -08:00
302ef63485 round duration to the second 2026-02-09 21:32:11 -08:00
955aab2152 update tools package 2026-02-09 21:20:04 -08:00
cb0e748068 0.0.6 2026-02-09 21:17:46 -08:00
7c04aceef9 [cron] setup app env properly when running tasks 2026-02-09 21:17:02 -08:00
47030d7d36 stream cron output 2026-02-09 21:13:05 -08:00
081c728d12 enter pword once 2026-02-09 21:00:46 -08:00
d89a58c0ab deploy builtin tools 2026-02-09 20:59:10 -08:00
8f37274cee toes env -g 2026-02-09 20:58:07 -08:00
e8a638d11d that's fine 2026-02-09 20:52:08 -08:00
86a91469be organize --help 2026-02-09 20:47:17 -08:00
9517f6d4b2 kill errant newline 2026-02-09 20:37:24 -08:00
d43e1c1c17 simpler sync 2026-02-09 20:36:58 -08:00
1685cc135d show cron errors 2026-02-09 20:36:46 -08:00
d4e8975200 fix emoji updating 2026-02-09 19:48:12 -08:00
Chris Wanstrath
823cbb2317 bun remote:deploy 2026-02-09 17:00:26 -08:00
Chris Wanstrath
b447f7d0ca better error messages 2026-02-09 16:59:00 -08:00
Chris Wanstrath
128afcfef8 DATA_DIR 2026-02-09 16:50:13 -08:00
Chris Wanstrath
f96c599f49 show invalid cron jobs w/ feedback 2026-02-09 16:46:38 -08:00
Chris Wanstrath
4d3083764a change cron discovery to use regex 2026-02-09 16:23:32 -08:00
Chris Wanstrath
a1aa37297f DATA_DIR 2026-02-09 16:08:44 -08:00
Chris Wanstrath
d6ae39ac15 global env variables 2026-02-09 10:50:21 -08:00
3ef7eba0d9 missed a health check 2026-02-09 09:59:30 -08:00
Chris Wanstrath
4b3ab78ae4 use pkg version 2026-02-09 09:49:03 -08:00
Chris Wanstrath
31d9ad4520 rpi moved chromium 2026-02-09 09:44:57 -08:00
eaae9ae993 fix cli host 2026-02-09 09:39:05 -08:00
Chris Wanstrath
8fa7dd9993 try rpi fix 2026-02-09 09:25:59 -08:00
96289f7e30 whoops 2026-02-08 14:19:00 -08:00
b43c1b4660 responsive for mobile 2026-02-08 13:56:09 -08:00