Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions core/claude_code_talker/triggers/tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ class Tag:
markup_overrides: dict = field(default_factory=dict)


# 5 starter tags installed on first run if cfg has no triggers.tags
# Starter tags installed on first run if cfg has no triggers.tags.
# (Originally 5; now 10 with the plan-mode / subagent / skill / permission
# tags. Tests should assert >= 5 with the original IDs present.)
STARTER_TAGS: list[Tag] = [
Tag(
id="audible_summary",
Expand Down Expand Up @@ -152,7 +154,7 @@ def enabled_ids(self) -> set[str]:
return {t.id for t in self._tags.values() if t.enabled}

def bootstrap_starters(self) -> None:
"""If empty, populate with the 5 starter tags. Idempotent."""
"""If empty, populate with the starter tags (`STARTER_TAGS`). Idempotent."""
if self._tags:
return
for t in STARTER_TAGS:
Expand Down
2 changes: 2 additions & 0 deletions core/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ dev = [
"pytest>=7.4",
"pytest-asyncio>=0.23",
"pytest-mock>=3.12",
"respx>=0.20",
"build>=1.0",
]
edge = ["edge-tts>=6.1"]
anthropic = ["anthropic>=0.40"]
Expand Down
9 changes: 6 additions & 3 deletions core/tests/test_api_triggers.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,12 @@ async def test_get_tags_returns_starter_set(client):
body = r.json()
assert "tags" in body
ids = {t["id"] for t in body["tags"]}
assert "audible_summary" in ids
assert "audible_synopsis" in ids
assert len(body["tags"]) == 5
# Original 5 starter tags must always be present; the set has grown to
# include plan-mode / subagent / skill / permission tags. Future
# additions should not break this test.
assert {"audible_summary", "audible_synopsis", "audible_briefs",
"audible_listings", "audible_details"} <= ids
assert len(body["tags"]) >= 5


# ---------------------------------------------------------------------------
Expand Down
Loading