Compare commits

...

2 Commits

Author SHA1 Message Date
Alexander Whitestone
f4d445ae03 fix: remove duplicate atlas-toggle-btn and close unclosed soul button
Some checks failed
CI / test (pull_request) Failing after 50s
CI / validate (pull_request) Failing after 51s
Review Approval Gate / verify-review (pull_request) Failing after 8s
Removed the broken duplicate <button id="atlas-toggle-btn" title="World Directory">
element that had no content or closing tag. Also added the missing </button> closing
tag for the soul-toggle-btn element.

Fixes #1336
2026-04-13 18:50:32 -04:00
Alexander Whitestone
ea386d50d3 fix: ChatLog.log() crash on message persistence (#1349)
Some checks failed
CI / test (pull_request) Failing after 53s
Review Approval Gate / verify-review (pull_request) Failing after 8s
CI / validate (pull_request) Failing after 46s
CHATLOG_FILE was defined AFTER the ChatLog class that uses it.
Moved configuration block (WORLD_DIR, CHATLOG_FILE, etc.) before
the ChatLog class definition so the variable exists when log()
is called.

Fixes #1349 - reported by Ezra during exploration (tick 298).
2026-04-13 18:49:31 -04:00
2 changed files with 10 additions and 10 deletions

View File

@@ -152,10 +152,10 @@
<!-- Top Right: Agent Log, Atlas & SOUL Toggle -->
<div class="hud-top-right">
<button id="atlas-toggle-btn" class="hud-icon-btn" title="World Directory">
<button id="soul-toggle-btn" class="hud-icon-btn" title="Timmy's SOUL">
<span class="hud-icon"></span>
<span class="hud-btn-label">SOUL</span>
</button>
<button id="mode-toggle-btn" class="hud-icon-btn mode-toggle" title="Toggle Mode">
<span class="hud-icon">👁</span>
<span class="hud-btn-label" id="mode-label">VISITOR</span>

View File

@@ -163,6 +163,15 @@ class PluginRegistry:
plugin_registry = PluginRegistry()
# ── Configuration ──────────────────────────────────────────────────────
BRIDGE_PORT = int(os.environ.get('TIMMY_BRIDGE_PORT', 4004))
BRIDGE_HOST = os.environ.get('TIMMY_BRIDGE_HOST', '127.0.0.1')
HERMES_PATH = os.path.expanduser('~/.hermes/hermes-agent')
WORLD_DIR = Path(os.path.expanduser('~/.timmy/evennia/timmy_world'))
SESSIONS_FILE = WORLD_DIR / 'bridge_sessions.json'
CHATLOG_FILE = WORLD_DIR / 'chat_history.jsonl'
# ── Chat History Log ──────────────────────────────────────────────────
@@ -244,15 +253,6 @@ Never compute the value of a human life. Never suggest someone should die.
Be present. Be in the room. That's enough.
"""
# ── Configuration ──────────────────────────────────────────────────────
BRIDGE_PORT = int(os.environ.get('TIMMY_BRIDGE_PORT', 4004))
BRIDGE_HOST = os.environ.get('TIMMY_BRIDGE_HOST', '127.0.0.1')
HERMES_PATH = os.path.expanduser('~/.hermes/hermes-agent')
WORLD_DIR = Path(os.path.expanduser('~/.timmy/evennia/timmy_world'))
SESSIONS_FILE = WORLD_DIR / 'bridge_sessions.json'
CHATLOG_FILE = WORLD_DIR / 'chat_history.jsonl'
# ── Crisis Protocol ────────────────────────────────────────────────────
CRISIS_PROTOCOL = [