Skip to content
This repository was archived by the owner on Jun 26, 2026. It is now read-only.

Commit 138fb21

Browse files
matejvasekclaude
andcommitted
chore: address PR #25 review feedback
- Move plan to docs/plans/completed/ - Move design spec to docs/designs/ - Mark init.sh feature as passes:true in features.json - Document inotify-tools as optional dev prerequisite in README - Handle errserver startup failure: log, stop_dev, exit watcher Signed-off-by: Matej Vašek <matejvasek@gmail.com> Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 258eb37 commit 138fb21

5 files changed

Lines changed: 10 additions & 2 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ Available image tags are listed in the [container registry](https://github.com/t
4848
- [Docker](https://www.docker.com) or [podman 3.2.0+](https://podman.io)
4949
- An [OpenShift cluster](https://console.redhat.com/openshift/create)
5050
- Github [*Personal Access Token*](https://github.com/settings/personal-access-tokens) with *administration*, *content* and *workflow* write permissions in all repositories
51+
- [inotify-tools](https://github.com/inotify-tools/inotify-tools) (optional, enables Go backend auto-recompile on file changes)
5152

5253
### Option 1: Local
5354

File renamed without changes.

docs/features.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@
154154
"The randomized ports shall be available to the Claude via a file.",
155155
"The go backend service should be automatically recompiled/restarted upon change to the ./backend directory."
156156
],
157-
"passes": false
157+
"passes": true
158158
},
159159
{
160160
"category": "functional",
File renamed without changes.

init.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,14 @@ start_backend_watcher() {
116116
rm -f bin/backend-tmp
117117
echo "$build_output" > "$LOG_DIR/backend-build-error.txt"
118118
./bin/errserver --port "$BACKEND_PORT" --msg-file "$LOG_DIR/backend-build-error.txt" >>"$LOG_DIR/backend.log" 2>&1 &
119-
echo $! > "$PID_DIR/backend.pid"
119+
errserver_pid=$!
120+
sleep 0.5
121+
if ! kill -0 "$errserver_pid" 2>/dev/null; then
122+
echo "[watcher] Error server failed to start. Shutting down."
123+
stop_dev
124+
break
125+
fi
126+
echo "$errserver_pid" > "$PID_DIR/backend.pid"
120127
fi
121128

122129
done

0 commit comments

Comments
 (0)