feat(config): hoist PORT, DEFAULT_MODEL, Forgejo URL fallbacks #454
Labels
No labels
area:agents
area:dashboard
area:database
area:design
area:design-review
area:flows
area:infra
area:meta
area:security
area:sessions
area:webhook
area:workdir
security
type:bug
type:chore
type:meta
type:user-story
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
charles/claude-hooks#454
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
User story
As an operator deploying to a different host, I want the service port, default model, and Forgejo URL fallbacks driven by env/config, so that I don't have to fork the repo to change
https://forge.jacquin.appor port 4500.Why: these are baked across 5+ files. Trying to run a second instance on a different host today requires source edits in
main.ts:167,event-log.ts:27,agent-runner.ts:70,sweeper.ts:38,workdir.ts:96,registry.ts:306,webhook-config.ts:1560,container-reconcile.ts:476.Acceptance criteria
Server
main.ts:167readsPORTfrom env (Number(process.env.PORT) ?? 4500)event-log.ts:27DEFAULT_MODELresolves fromagents.json::types.<TYPE>.modelper agent (already partly there); remove the standaloneconsthttps://forge.jacquin.appfallbacks consolidated: singlegetForgejoUrl()helper inshared/config/webhook-config.ts— every other module imports it. No more inline literal fallbacksforge.jacquin.app/charles/claude-hooks:latestmoved toagents.json::container_image_defaultmain.ts:2131) honoursagents.json::penpot.base_urlonly — no hardcodeddesign.jacquin.appTests
just qapassesforge.jacquin.appordesign.jacquin.appoutsideconfig/,docs/, and testsOut of scope
docs/multi-forge.md)References
apps/server/src/main.ts:167apps/server/src/infrastructure/event-log.ts:27