Skip to content

fix(intent): don't mislabel backend app/ code as web work#26

Merged
youcefzemmar merged 1 commit into
veltiq:mainfrom
youcefzemmar:fix/intent-web-mislabel
May 31, 2026
Merged

fix(intent): don't mislabel backend app/ code as web work#26
youcefzemmar merged 1 commit into
veltiq:mainfrom
youcefzemmar:fix/intent-web-mislabel

Conversation

@youcefzemmar
Copy link
Copy Markdown
Collaborator

Follow-up to #25 — the squash merged before this commit landed, so main's src/intent.ts is missing it.

A fresh verification pass on #25 caught that WEB_DIR included ambiguous roots (app, public, client) and web was classified before api — so a FastAPI/Rails app/routes.py with @app.get was labeled web and the agent was told to screenshot a backend server.

Fix: web wins only on a strong signal (a real web extension or a DOM idiom); a mere UI-ish directory yields to a detected API. WEB_DIR trimmed to genuine UI source dirs. Also: for web, prefer the dev-tool's default URL over a stray listen() port in the diff.

Verified on the built dist: app/routes.py+@app.getapi, app/page.tsxweb, public/robots.txtgeneric. +3 regression tests; 141 pass, typecheck + biome clean.

Should land before tagging v0.6.0.

🤖 Generated with Claude Code

A fresh verification pass caught that WEB_DIR included ambiguous roots
(`app`, `public`, `client`), and web was classified before api — so a
FastAPI/Rails `app/routes.py` with `@app.get` was labeled "web" and the
agent was told to screenshot a backend server.

Web now wins only on a STRONG signal (a real web extension or a DOM idiom);
a mere UI-ish directory yields to a detected API. WEB_DIR is trimmed to
genuine UI source dirs. Also: for web, prefer the dev-tool's default URL
over a stray listen() port in the diff. +3 regression tests; 141 pass.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@youcefzemmar youcefzemmar merged commit d89640e into veltiq:main May 31, 2026
3 of 4 checks passed
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