Skip to content

refactor: dedupe agent model config plumbing#172

Open
LIU9293 wants to merge 1 commit intomainfrom
feat/reduce-loc-model-dedupe-102759
Open

refactor: dedupe agent model config plumbing#172
LIU9293 wants to merge 1 commit intomainfrom
feat/reduce-loc-model-dedupe-102759

Conversation

@LIU9293
Copy link
Contributor

@LIU9293 LIU9293 commented Feb 28, 2026

Summary

  • consolidate duplicated OpenCode model extraction logic into a shared utility and reuse it in both runtime server sync and web agent checks
  • reduce config-model boilerplate by normalizing provider agent defaults/models through provider metadata instead of repeated per-provider blocks
  • remove redundant per-agent barrel index.ts files and point imports directly to client.ts to cut repetitive LOC

Validation

  • bun run typecheck (fails due to existing web-ui dependency/type resolution issues unrelated to this change: missing *.svelte, clsx, tailwind-merge, @tailwindcss/vite)

Consolidate repeated model parsing/default logic and remove redundant agent barrel files to reduce LOC and keep provider behavior consistent across runtime and web checks.
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