mirror of
https://github.com/turnstonelabs/turnstone.git
synced 2026-08-12 23:12:23 -06:00
fix(session): describe skill selections accurately
Use neutral "set" wording for operator skill markers so re-selecting the current skill does not falsely claim a change. Update the regression expectation for the persisted marker.
This commit is contained in:
committed by
Patrick Buckley
parent
a64cd25807
commit
82676080a4
@@ -248,7 +248,7 @@ class TestSkillCommand:
|
||||
assert marker["role"] == "system"
|
||||
assert marker["_source"] == "skill_hint"
|
||||
assert marker["content"] == (
|
||||
f"Operator changed the active skill from alpha to {expected_target}."
|
||||
f"Operator set the active skill from alpha to {expected_target}."
|
||||
)
|
||||
save_message.assert_called_once()
|
||||
|
||||
|
||||
@@ -16929,7 +16929,7 @@ class ChatSession:
|
||||
self.set_skill(None)
|
||||
self._append_system_turn(
|
||||
"skill_hint",
|
||||
f"Operator changed the active skill from {previous_skill} to defaults.",
|
||||
f"Operator set the active skill from {previous_skill} to defaults.",
|
||||
)
|
||||
self.ui.on_info("Skill cleared; using defaults.")
|
||||
else:
|
||||
@@ -16938,7 +16938,7 @@ class ChatSession:
|
||||
self.set_skill(tpl["name"])
|
||||
self._append_system_turn(
|
||||
"skill_hint",
|
||||
f"Operator changed the active skill from {previous_skill} to {tpl['name']}.",
|
||||
f"Operator set the active skill from {previous_skill} to {tpl['name']}.",
|
||||
)
|
||||
self.ui.on_info(f"Skill set: {tpl['name']}")
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user