Skip to content

🤖 refactor: reduce generated and media LoC#3306

Open
ammar-agent wants to merge 1 commit into
mainfrom
codegen-sbkh
Open

🤖 refactor: reduce generated and media LoC#3306
ammar-agent wants to merge 1 commit into
mainfrom
codegen-sbkh

Conversation

@ammar-agent
Copy link
Copy Markdown
Collaborator

@ammar-agent ammar-agent commented May 17, 2026

Summary

Reduces repository size by removing bulky checked-in docs media, replacing the transient Lottie loading animation with a dependency-free Mux logo pulse, and compacting generated model/skill artifacts so future generated updates are easier to review.

Background

The workspace goal was to reduce the codebase by 10,000 LoC while improving maintainability, with generated code counting at 1/10th weight and preference for recent-churn hot paths. The audited diff removes 59,586 raw lines and 34,682.1 effective lines after generated-code discounting. Several touched files are active churn points, including package.json, bun.lock, builtInSkillContent.generated.ts, and UI loading tests.

Implementation

  • Replaces README/docs landing demo media with the existing generated code-review.webp screenshot and deletes the large GIF/MP4 blobs.
  • Removes lottie-react and the generated dancing-blink JSON payload, replacing the loading indicator with a theme-aware Mux logo pulse that respects reduced motion.
  • Updates generators so models.json and built-in skill content remain compact on future refreshes.
  • Updates the Nix offline cache hash for the new dependency graph.
  • Removes obsolete Lottie mocks and adjusts affected UI tests.
  • Updates the README screenshot-generation skill so future agents treat code-review.webp as the hero refresh path.

Validation

  • bun test src/common/constants/knownModels.test.ts src/common/utils/tokens/modelStats.test.ts src/common/utils/ai/modelCapabilities.test.ts src/node/services/agentSkills/agentSkillsService.test.ts src/node/services/tools/agent_skill_read_file.test.ts
  • bun test src/browser/components/AppLoader/AppLoader.auth.test.tsx
  • bun test src/browser/components/ProjectPage/ProjectPage.autofocus.test.tsx src/browser/components/WorkspaceShell/WorkspaceShell.test.tsx src/browser/components/AppLoader/AppLoader.auth.test.tsx tests/ui/chat/newChatStreamingFlash.test.ts tests/ui/chat/streamInterrupt.test.ts tests/ui/chat/bottomLayoutShift.test.ts
  • bun scripts/gen_builtin_skills.ts check
  • bun -e 'JSON.parse(await Bun.file("src/common/utils/tokens/models.json").text()); console.log("models.json parses")'
  • make flake-hash-check
  • make static-check

Risks

Low product risk. The main user-visible change is that transient loading states now use a simple logo pulse instead of the previous Lottie animation. Docs no longer include the large animated/video hero blobs locally, using an existing static generated screenshot instead.


Generated with mux • Model: openai:gpt-5.5 • Thinking: xhigh • Cost: $17.72

@mintlify
Copy link
Copy Markdown

mintlify Bot commented May 17, 2026

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
Mux 🟢 Ready View Preview May 17, 2026, 11:36 PM

💡 Tip: Enable Workflows to automatically generate PRs for you.

@ammar-agent
Copy link
Copy Markdown
Collaborator Author

@codex review

@ammar-agent
Copy link
Copy Markdown
Collaborator Author

@codex review

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 95fef7eb59

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread README.md
Remove bulky checked-in media, replace the transient Lottie loader with a dependency-free logo pulse, and compact generated model/skill artifacts so future generated updates are easier to review.

---

_Generated with `mux` • Model: `openai:gpt-5.5` • Thinking: `xhigh` • Cost: `$17.72`_

<!-- mux-attribution: model=openai:gpt-5.5 thinking=xhigh costs=17.72 -->
@ammar-agent
Copy link
Copy Markdown
Collaborator Author

@codex review
Please take another look.

@chatgpt-codex-connector
Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep them coming!

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

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