Skip to content

Commit 4cc04aa

Browse files
committed
feat: Remove presence status truncation and bump version to 0.1.11.
1 parent 680975b commit 4cc04aa

4 files changed

Lines changed: 6 additions & 12 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "ccontext-mcp"
7-
version = "0.1.10"
7+
version = "0.1.11"
88
description = "MCP server for AI agents to manage project execution context"
99
readme = "README.md"
1010
license = "MIT"

src/ccontext_mcp/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
"""ccontext-mcp: MCP server for AI agents to manage project execution context."""
22

3-
__version__ = "0.1.10"
3+
__version__ = "0.1.11"

src/ccontext_mcp/storage.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,6 @@
3434
# Max done milestones to return in get_context
3535
MAX_DONE_MILESTONES_RETURNED = 3
3636

37-
# Presence status max length (kept short for headers; detailed progress goes in tasks/notes).
38-
PRESENCE_STATUS_MAX_LEN = 120
39-
40-
4137
class ContextStorage:
4238
"""Handles reading and writing context data to YAML files."""
4339

@@ -641,8 +637,6 @@ def _normalize_presence_status(self, status: str) -> str:
641637
"""Normalize presence status to a single concise line."""
642638
s = str(status or "")
643639
s = re.sub(r"\s+", " ", s).strip()
644-
if len(s) > PRESENCE_STATUS_MAX_LEN:
645-
s = s[:PRESENCE_STATUS_MAX_LEN].rstrip()
646640
return s
647641

648642
def _parse_iso_timestamp(self, ts: str) -> Optional[datetime]:

tests/test_tools.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -480,17 +480,17 @@ def test_presence_canonicalization_and_dedup(self, tools):
480480
assert presence.agents[0].id == "peer-b"
481481
assert presence.agents[0].status == "Second status"
482482

483-
def test_presence_status_single_line_and_truncation(self, tools):
484-
"""Status should be single-line and capped."""
483+
def test_presence_status_single_line_no_truncation(self, tools):
484+
"""Status should be single-line and not silently truncated."""
485485
long = "Line1\nLine2\t" + ("x" * 500)
486486
tools.update_my_status(agent_id="SomeAgent", status=long)
487487

488488
presence = tools.storage.load_presence()
489489
agent = next(a for a in presence.agents if a.id == "some-agent")
490490
assert "\n" not in agent.status
491491
assert "\t" not in agent.status
492-
assert len(agent.status) <= 120
493-
assert agent.status.endswith("…") is False
492+
assert agent.status.startswith("Line1 Line2")
493+
assert len(agent.status) >= 500
494494

495495

496496
def test_get_context_returns_version(tmp_path):

0 commit comments

Comments
 (0)