Skip to content

fix: name what "Auto-start on boot" actually is, and stop the commands card scrolling - #67

Merged
FMSMITH91 merged 1 commit into
mainfrom
fix/autostart-label-and-commands-card
Aug 9, 2026
Merged

fix: name what "Auto-start on boot" actually is, and stop the commands card scrolling#67
FMSMITH91 merged 1 commit into
mainfrom
fix/autostart-label-and-commands-card

Conversation

@FMSMITH91

Copy link
Copy Markdown
Owner

Two things from the Details tab.

"Does it need autostart on boot when it uses monitor?"

Fair question — and they're the same switch. The label implied a separate @reboot mechanism; there isn't one.

set_autostart() adds or removes exactly:

*/5 * * * * /home/codserver/codserver monitor

…and deliberately strips any legacy @reboot … start line. The reasoning in that function is sound: monitor keeps a server in its intended state. The start lockfile survives a reboot, so monitor brings back a server that should be running — and leaves a deliberately-stopped one down. An @reboot start would force-start a server you had stopped on purpose.

So the row now reads "Auto-start & recover (monitor, every 5 min)", and the tooltip spells out the behaviour including the part that matters — it won't restart something you stopped deliberately. No behaviour change; only the label was lying about the mechanism.

The Supported Commands card

A hard max-height:340px made it scroll inside a card with room to spare beside it — the list cut off at skeleton while Server Info next to it ran ~130px further down. Removed. About 20 rows for a typical game sizes fine, and the page scrolls like every other card here.

Noticed, deliberately not changed

The toggle reflects a database column, while install_game_cron() writes the same monitor line independently at install time. Nothing reconciles the two, so the switch can disagree with the actual crontab — it would show Off while monitor is still scheduled, or vice versa. Making it read the real cron state is a bigger change and deserves its own PR. Say the word.

smoke 297 · template_actions 7 · lint clean.

🤖 Generated with Claude Code

…s card scrolling

Two things noticed on the Details tab.

── "does it need autostart on boot when it uses monitor?" ────────────────────
A fair question, and the answer is that they are the same switch. The label
implied a separate @reboot mechanism; there isn't one. set_autostart() adds or
removes exactly `*/5 * * * * ./codserver monitor` and deliberately strips any
legacy `@reboot ... start` line, because monitor keeps the server in its
INTENDED state — the start lockfile survives a reboot, so monitor brings back
a server that should be running, and leaves a deliberately-stopped one down. A
`@reboot start` would force-start a server the operator had stopped.

So the row now reads "Auto-start & recover (monitor, every 5 min)", and the
tooltip spells out the behaviour including the part that matters: it will not
restart something you stopped on purpose. No behaviour change — only the label
was lying about the mechanism.

── The Supported Commands card ───────────────────────────────────────────────
A hard max-height:340px made it scroll inside a card with plenty of room
beside it — the list was cut off at "skeleton" while Server Info next to it ran
130px further down. Removed: ~20 rows for a typical game sizes fine, and the
page scrolls like every other card here.

Worth noting, not changed: the toggle reflects a DATABASE column, while
install_game_cron() writes the same monitor line independently at install
time. Nothing reconciles them, so the switch can disagree with the crontab.
Making it read the real cron is a bigger change and its own PR.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@codacy-production

codacy-production Bot commented Aug 9, 2026

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Coverage ∅ diff coverage · +0.08% coverage variation

Metric Results
Coverage variation +0.08% coverage variation (-1.00%)
Diff coverage diff coverage

View coverage diff in Codacy

Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (25ea042) 11936 5756 48.22%
Head commit (4774be7) 11936 (+0) 5765 (+9) 48.30% (+0.08%)

Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: <coverage of head commit> - <coverage of common ancestor commit>

Diff coverage details
Coverable lines Covered lines Diff coverage
Pull request (#67) 0 0 ∅ (not applicable)

Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: <covered lines added or modified>/<coverable lines added or modified> * 100%

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@FMSMITH91
FMSMITH91 merged commit 3d19173 into main Aug 9, 2026
19 checks passed
@FMSMITH91
FMSMITH91 deleted the fix/autostart-label-and-commands-card branch August 9, 2026 01:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant