Skip to content

feat: export ILOOM_LOOM and ILOOM_COLOR_HEX env vars#587

Merged
acreeger merged 1 commit intoiloom-ai:mainfrom
NoahCardoza:feature/env-vars-injection
Feb 18, 2026
Merged

feat: export ILOOM_LOOM and ILOOM_COLOR_HEX env vars#587
acreeger merged 1 commit intoiloom-ai:mainfrom
NoahCardoza:feature/env-vars-injection

Conversation

@NoahCardoza
Copy link
Contributor

Summary

  • Automatically sets ILOOM_LOOM and ILOOM_COLOR_HEX environment variables in loom shells and dev servers
  • ILOOM_LOOM enables PS1 customization to identify which loom you're in
  • ILOOM_COLOR_HEX allows downstream tools (e.g., Vite apps) to visually distinguish looms
  • Includes Vite integration guide at docs/vite-iloom-color.md

Test plan

  • Run il shell on a loom and verify echo $ILOOM_LOOM returns the loom identifier
  • Run il shell on a colored loom and verify echo $ILOOM_COLOR_HEX returns the hex color
  • Run il dev-server and verify env vars are passed to the child process
  • Run pnpm vitest run src/commands/dev-server.test.ts src/commands/shell.test.ts — all pass

🤖 Generated with Claude Code

…-server commands

Automatically sets ILOOM_LOOM and ILOOM_COLOR_HEX environment variables
when launching loom shells and dev servers, enabling PS1 customization
and visual loom identification in downstream tools.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@NoahCardoza
Copy link
Contributor Author

I added this feature so I could prefix the page titles with [issue-id]: and put a floating colored UI element in the bottom right so I could easily tell which loom this instance of the app belonged to.

@acreeger
Copy link
Collaborator

Woah! Nice idea! I'll take a look!

@acreeger acreeger merged commit 8881bd6 into iloom-ai:main Feb 18, 2026
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

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants