Uh oh!
There was an error while loading. Please reload this page.
docs(agents): correct the documented docs dev-server port to 3000 - #123
Merged
Conversation
AGENTS.md § Commands said `npm run dev` serves on http://localhost:3001. The `apps/docs` dev script has been bare `next dev` in every commit of this repository's history, so it binds Next's default 3000 — the documented port was never true of any commit, rather than drift from a setup that later changed. 3001 is the number this repo's own `.claude/launch.json` reserves for `@objectos/server` (product code removed when the repository was repositioned as the docs front door). That same launch config puts the docs site on 3000, as do `README.md` and `apps/docs/README.md`. Pinning the script to 3001 instead would have moved the docs server onto the server's reserved port and made both READMEs wrong. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Yaqu7kmKZM3tRPd9Y4xivo
This was referenced Aug 18, 2026
os-elon
marked this pull request as ready for review
August 19, 2026 03:13
Uh oh!
There was an error while loading. Please reload this page.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes#97
AGENTS.md§ Commands documented the docs dev server onhttp://localhost:3001. It binds 3000. Exactly one of the two had to change; this PR changes the doc, and the evidence for that direction is below.Which side is wrong
The doc — not a close call once the repository's own port map is in view.
1.
.claude/launch.jsonalready assigns these ports, and it gives 3001 to something else. It was added in the initial commit32894a5, the same commit that wrote the AGENTS.md line:@objectos/docs)autoPort: true)@objectos/server)So 3001 is the server's number in this repo, not a deliberate "keep the docs site off the platform's port" choice made for the docs site.
@objectos/serverwas removed when the repository was repositioned as the docs front door (PR #38), which is why nothing answers on 3001 today.2. The script has never bound 3001.
apps/docs/package.jsonhas carried bare"dev": "next dev"in every commit of this repository's history —git show 32894a5:apps/docs/package.jsonis already bare, and only two commits have ever touched that file, neither adding-p. The documented port was never true of any commit. This is not drift away from a setup that once worked.3. Two READMEs already say 3000.
README.md(pnpm docs:dev # Fumadocs site at http://localhost:3000) andapps/docs/README.md(pnpm --filter @objectos/docs dev # localhost:3000). AGENTS.md was the lone outlier: one statement against three.4. The alternative spreads the inconsistency instead of closing it. Pinning
next dev -p 3001would make the AGENTS.md line true, but in the same stroke move the docs server onto the portlaunch.jsonreserves for@objectos/serverand make both READMEs false. The one-word doc change makes all four statements agree.The case for 3001, and why it does not survive
The published corpus does consistently put the platform on
localhost:3000—index.mdx,quickstart.mdx,build/marketplace.mdx,configure/mcp.mdx,configure/storage.mdx,resources/faq.mdx— which makes 3001 look like deliberate collision-avoidance. But the platform on 3000 there is the reader's own ObjectOS runtime, started from their own project (.env.example:OBJECTOS_PORT=3000, the host port published by docker-compose). It is not a process that runs in this repository. The process that did run here was@objectos/server, andlaunch.jsonpinned it to 3001, never 3000. There is no in-repo process for the docs dev server to collide with, and 3001 is the one number already spoken for.Measured
The dev server was started unmodified in this branch's worktree and allowed to report its own port:
While it was up:
curl http://localhost:3000/returned307withlocation: /docs;curl http://localhost:3001/returned000(connection refused). After a clean stop, 3000 also returned000. This reproduces the measurement in the issue on a second machine and a later base commit.Verification
Run at
0846b45, the commit this PR proposes. Every turbo task forced (--force) and its log paths confirmed to be this worktree, so nothing here is a replayed cache entry from a sibling checkout. Local Node is v22.22.2, matching the Node 22 that CI adopted in #118.pnpm install --frozen-lockfilepnpm turbo run type-check --continue --forcepnpm turbo run build --forcepnpm turbo run test --forcenode .github/scripts/check-translations.mjsnode .github/scripts/check-translation-ownership.mjsnode .github/scripts/check-translation-output.mjs --filesnode .github/scripts/check-translation-output.mjs --self-testThe Translations workflow will not actually run on this PR: its
pathsfilter iscontent/docs/**,apps/docs/lib/i18n.ts,.github/scripts/check-translation*.mjsand its own file, none of which this diff touches. It was run locally anyway.deploy-docs.ymlis push-to-main and its paths do not includeAGENTS.md, so it stays idle on merge too.Scope
One line in one file. No script reordering, no other AGENTS.md edits, no content changes.
AGENTS.mdis governed surface, so this stays in draft for the maintainer to merge. That cost was known before the direction was chosen and did not influence it — the cheaper route was the one available by editingapps/docs/package.json, and the evidence pointed the other way.Generated by Claude Code