Skip to content

fix(chronos): make bun dev start on Windows - #456

Merged
Dasa122 merged 1 commit into
mainfrom
fix/header-size-bun
Nov 12, 2026
Merged

Dasa122 merged 1 commit into
mainfrom
fix/header-size-bun

Conversation

@Dasa122

@Dasa122 Dasa122 commented Nov 12, 2026

Copy link
Copy Markdown
Member

Summary

On Windows, bun dev shut down as soon as it reached the backend: the start-up command asked the shell for an optional setting, and the Windows shell doesn't understand that syntax, so the backend got garbage instead of a number and refused to start. Nothing on Windows could run the app in development.

Now the backend works that setting out itself, so the start-up command is plain text that behaves the same on Windows, Linux and macOS.

Changes

  • The dev command is simplified back to a normal bun run --hot src/index.ts.
  • Chronos applies the request-header limit itself at start-up and logs the value it used, so it's visible in the logs rather than hidden in a shell command.
  • CHRONOS_MAX_HTTP_HEADER_SIZE still overrides it; leaving it empty keeps the current 65536. A bad value now stops the app with a clear message.
  • Turbo passes that variable through, so exporting it actually works.
  • Docs and .env.example updated; the Docker start-up command is unchanged.

Verification

  • bun run lint
  • bun run typecheck
  • bun run build — if bundler config, routers, or server entrypoints changed

…Windows

`bun dev` passed `--max-http-header-size=${CHRONOS_MAX_HTTP_HEADER_SIZE:-65536}`,
which Windows' Bun Shell cannot expand, so the literal placeholder reached bun
and the app exited with "Invalid value for --max-http-header-size". Bun also
accepts the cap through node:http's `maxHeaderSize` accessor, so the API now
sets it from CHRONOS_MAX_HTTP_HEADER_SIZE at startup and the dev script goes
back to plain `bun run --hot src/index.ts`. An empty value still defaults to
65536; the image entrypoint keeps passing the flag as a launch-level default.
@merenyimiklos
merenyimiklos marked this pull request as ready for review November 12, 2026 21:49
@merenyimiklos
merenyimiklos self-requested a review November 12, 2026 21:49
@filc-preview-vm

filc-preview-vm Bot commented Nov 12, 2026 •

Copy link
Copy Markdown

🗑️ Preview removed

Environment pr-456.preview.filc.petrik.hu
Commit 5dbd508
URL https://pr-456.preview.filc.petrik.hu
Edge check —

Posted by filc-deployer. The preview database is its own container and is
destroyed when this pull request closes.

@filc-preview-vm
filc-preview-vm Bot temporarily deployed to preview-pr-456 November 12, 2026 21:49 Destroyed
@merenyimiklos

Copy link
Copy Markdown
Contributor

mehet a menet

@merenyimiklos merenyimiklos added chronos - backend Work to be done on chronos, the backend bug labels Nov 12, 2026
@Dasa122
Dasa122 merged commit 7efa995 into main Nov 12, 2026
6 checks passed
@Dasa122
Dasa122 deleted the fix/header-size-bun branch November 12, 2026 21:54
@github-project-automation github-project-automation Bot moved this from Backlog to Done in Filc Issue Tracker Nov 12, 2026

This branch was successfully deployed

No deployments
preview-pr-456 — 5dbd508b Deployed Nov 12, 2026 by filc-preview-vm[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug chronos - backend Work to be done on chronos, the backend

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants