Skip to content

Commit dbdd2af

Browse files
committed
chore: remove stale LPB_VERSION from lpb.conf.env
LPB_VERSION=0.2.0-lpb was hardcoded in the initial commit and never updated while VERSION evolved to 0.0.23-lpb-dev. It had no runtime consumer and its comment about a startup banner was incorrect. The only real path is build.py → Dockerfile → container (source of truth). Clean up the stale lpb.conf.env default, the dead lpb.py env-var pass-through, and the orphaned LOCALPIB_VERSION export.
1 parent ebb295f commit dbdd2af

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

lpb.conf.env

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,7 @@ LPB_AGENT_BROWSER_IDLE_TIMEOUT_MS=300000
6161
# ─── Misc ───────────────────────────────────────────────────────────────
6262
# Persist gh CLI auth to ~/.config/gh inside container
6363
LPB_PERSIST_GH_CONFIG=true
64-
# LocalPibox stack version (shown in startup banner, set via lpb.stack.env)
65-
LPB_VERSION=0.2.0-lpb
66-
64+
LPB_PERSIST_GH_CONFIG=true
6765
# ─── Agent Date/Time ──────────────────────────────────────────────────
6866
# Set by start.sh at runtime (via $(date)) so the agent always knows
6967
# the current date/time. Available as PI_DATE and PI_TIME environment

scripts/lpb.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -893,7 +893,7 @@ def cmd_version():
893893
stack_env = _find_env_file("lpb.stack.env")
894894
if stack_env and stack_env.is_file():
895895
cfg_env = _parse_env_file(stack_env)
896-
version = cfg_env.get("LPB_PI_REF", cfg_env.get("LPB_VERSION", "unknown"))
896+
version = cfg_env.get("LPB_PI_REF", "unknown")
897897
print(f"LocalPibox stack {version}")
898898
return
899899

@@ -1202,7 +1202,6 @@ def cmd_run():
12021202
# would pollute .devstack-env and break future host runs.
12031203
f"LPB_EXA_API_KEY={os.environ.get('LPB_EXA_API_KEY', os.environ.get('EXA_API_KEY', ''))}",
12041204
f"LPB_MAX_TOKENS_CONTEXT_RATIO={os.environ.get('LPB_MAX_TOKENS_CONTEXT_RATIO', _conf_cfg.get('LPB_MAX_TOKENS_CONTEXT_RATIO', '0.06'))}",
1205-
f"LPB_VERSION={os.environ.get('LPB_VERSION', _conf_cfg.get('LPB_VERSION', ''))}",
12061205
]
12071206
for k in ("PI_WORKTREE_ID", "LPB_AGENT_BROWSER_ARGS", "LPB_AGENT_BROWSER_MAX_OUTPUT",
12081207
"LPB_AGENT_BROWSER_CONTENT_BOUNDARIES", "LPB_AGENT_BROWSER_CONFIRM_ACTIONS",

0 commit comments

Comments
 (0)