Skip to content

armgit / avibe

Public Imported from GitHub
0

Make your computer a home for your AI partner. Avibe is the local-first Agent OS: Vibey, its built-in AI partner, works out of the box, and Claude Code, Codex & OpenCode run unchanged beside it — reach them from your browser, phone, or any chat app.

chore(memory): remove obsolete retirement traces (#2159)

rkrkrkke56d20bbd056
diff --git a/core/process_isolation.py b/core/process_isolation.py
index 34ce4b0a5..6c4cb335f 100644
--- a/core/process_isolation.py
+++ b/core/process_isolation.py
@@ -157,9 +157,9 @@ def process_identity_matches(
"""Whether ``live`` is the recorded process, by its inherited marker.
The marker is the authority, not the birth time: on macOS psutil's displayed
- create time can shift while the same execution keeps running (see
- ``docs/plans/memory-macos-identity-recovery-1990.md``), and a 256-bit marker only
- the managed tree inherits cannot be carried by a stranger holding a recycled pid.
+ create time can shift while the same execution keeps running, and a 256-bit
+ marker only the managed tree inherits cannot be carried by a stranger holding
+ a recycled pid.
"""
return expected.pid == live.pid and _marker_matches(expected, live)
diff --git a/modules/agents/codex/agent.py b/modules/agents/codex/agent.py
index bd2017472..addb88fc5 100644
--- a/modules/agents/codex/agent.py
+++ b/modules/agents/codex/agent.py
@@ -3008,9 +3008,8 @@ class CodexAgent(BaseAgent):
) -> None:
"""Refresh mutable non-prompt thread config before starting a Turn."""
self.ensure_agent_session_id(request)
- # The caller invokes this after prompt rendering grants or revokes the
- # per-turn Memory CLI capability, so the environment observes that
- # decision without rendering the prompt a second time.
+ # Refresh caller environment and git path after prompt rendering,
+ # without rendering the prompt a second time.
caller_env = self._caller_env_for_request(request)
git_path_state = self._git_path_state_for_request(request)
diff --git a/modules/agents/codex/transport.py b/modules/agents/codex/transport.py
index d7a8803ef..ebca566a5 100644
--- a/modules/agents/codex/transport.py
+++ b/modules/agents/codex/transport.py
@@ -23,8 +23,8 @@ if TYPE_CHECKING:
STREAM_BUFFER_LIMIT = 128 * 1024 * 1024 # 128 MB
-# Avibe owns the user-facing surface, durable automation, memory, and agent
-# delegation. Keep Codex app-server focused on the execution capabilities that
+# Avibe owns the user-facing surface, durable automation, and agent delegation.
+# Keep Codex app-server focused on the execution capabilities that
# Avibe deliberately exposes instead of inheriting Codex client features from a
# user's global config. These overrides are appended last so backend extra args
# cannot re-enable a competing host surface for this process.
diff --git a/modules/im/slack.py b/modules/im/slack.py
index 640009c4e..ffe910034 100644
--- a/modules/im/slack.py
+++ b/modules/im/slack.py
@@ -2403,7 +2403,6 @@ class SlackBot(BaseIMClient):
"clear",
"cwd",
"queue",
- "memory",
]:
await self.send_slash_response(
response_url, f"⏳ {self._t('common.processing', channel_id, command=command)}"
diff --git a/scripts/release_package_version.py b/scripts/release_package_version.py
index 5a8950c41..fcd6cce34 100644
--- a/scripts/release_package_version.py
+++ b/scripts/release_package_version.py
@@ -41,7 +41,7 @@ def package_version_from_release_tag(tag: str) -> str:
if normalized.startswith("v") and normalized != f"v{result}":
raise ValueError(
f"official release tag must use canonical spelling v{result}; "
- "index-installed core resolves its Memory companion by that exact tag"
+ "release artifacts must match that exact version"
)
return result
diff --git a/tests/test_doctor_i18n.py b/tests/test_doctor_i18n.py
index 1dbf5df54..9f8c4a919 100644
--- a/tests/test_doctor_i18n.py
+++ b/tests/test_doctor_i18n.py
@@ -400,6 +400,31 @@ def test_doctor_dependency_status_stays_machine_data_and_out_of_sentence(
assert all("尚未就绪" in item["message"] for item in items if item.get("code") in expected)
+def test_doctor_ready_and_unsupported_dependencies_keep_stable_codes(
+ monkeypatch: pytest.MonkeyPatch,
+) -> None:
+ monkeypatch.setattr(
+ cli.api,
+ "dependencies_status",
+ lambda **_kwargs: {
+ "deps": [
+ {"id": "askill", "required": True, "installed": True, "status": "ready", "version": "1.0"},
+ {"id": "avault", "required": False, "installed": False, "status": "unsupported"},
+ ]
+ },
+ )
+ monkeypatch.setattr(cli, "_configured_cli_language", lambda: "en")
+
+ items = cli._managed_dependencies_doctor_items(deep=False)
+
+ ready = next(item for item in items if item.get("code") == "dependencies.askill.ready")
+ unsupported = next(item for item in items if item.get("code") == "dependencies.avault.platform_unsupported")
+ assert ready["status"] == "pass"
+ assert unsupported["status"] == "warn"
+ assert "dependency_reason" not in ready
+ assert "dependency_required" not in unsupported
+
+
@pytest.mark.parametrize(
("probe_reason", "label_marker", "english_label"),
[
diff --git a/tests/test_telegram_bot.py b/tests/test_telegram_bot.py
index 9c735daa7..b34e0de37 100644
--- a/tests/test_telegram_bot.py
+++ b/tests/test_telegram_bot.py
@@ -901,6 +901,23 @@ def test_pending_cwd_prompt_bypasses_slash_command_with_args() -> None:
assert bot._interaction_scope_key(context) in bot._cwd_prompts
+def test_pending_cwd_prompt_does_not_treat_retired_command_as_path() -> None:
+ bot = TelegramBot(TelegramConfig(bot_token="123456:test-token"))
+ context = MessageContext(
+ user_id="42",
+ channel_id="-100123",
+ thread_id="1",
+ platform="telegram",
+ platform_specific={"is_dm": False},
+ )
+ bot._cwd_prompts[bot._interaction_scope_key(context)] = SimpleNamespace(message_id="10", current_cwd="/tmp")
+
+ handled = asyncio.run(bot._consume_cwd_prompt(context, "/memory status"))
+
+ assert handled is False
+ assert bot._interaction_scope_key(context) in bot._cwd_prompts
+
+
def test_send_message_uses_html_parse_mode() -> None:
bot = TelegramBot(TelegramConfig(bot_token="123456:test-token"))
context = MessageContext(user_id="42", channel_id="-100123", platform="telegram")
diff --git a/ui/src/i18n/keyCoverage.test.ts b/ui/src/i18n/keyCoverage.test.ts
index 8dab87cfe..4690dd2bd 100644
--- a/ui/src/i18n/keyCoverage.test.ts
+++ b/ui/src/i18n/keyCoverage.test.ts
@@ -29,12 +29,10 @@
// passing no count renders the raw key against a family that has no plain key.
//
// `count` is one of the options the call site hands over, and the same reading
-// answers the other one that changes what "has copy" means. `returnObjects` says
-// the caller consumes a LIST — `MemorySettingsPanel` maps over its result — so a
-// value turned into an object or a plain string is renderable by every other
-// measure and still throws on `.map`. Both are read off the call rather than
-// listed as keys here, so a second site asking for a list is covered the day it
-// is written.
+// answers the other one that changes what "has copy" means. A caller that uses
+// `returnObjects` to consume a LIST needs an array rather than an object or a
+// plain string, even if the latter looks renderable. Both are read off the call
+// rather than listed as keys here, so a list consumer is covered when added.
//
// That axis is closed by a MODEL rather than by a list of options, which is what
// it finally became: one question — how much copy does this call DEMAND — with
@@ -177,9 +175,8 @@
// `<Trans>`. An object passes none of them — i18next hands a plain call its
// diagnostic instead of a string — and neither does a list.
//
-// LIST, where a call site reads `returnObjects` and maps what comes back;
-// `MemorySettingsPanel` does, over the two keys in `src/` that answer this
-// way. A nonempty list of copy, because a locale that keeps the array and
+// LIST, where a call site reads `returnObjects` and maps what comes back.
+// A nonempty list of copy, because a locale that keeps the array and
// empties an entry renders a blank row rather than a raw key.
//
// SUBTREE, where the name is not a key at all but a PREFIX its component
@@ -661,10 +658,10 @@ const probes = (lng: string, reference: Reference): Record<string, unknown>[] =>
*
* Asking the value rather than a `t()` projection is what makes it position-free
* and option-free. The projection needed the call's position to find the key AND
- * the call's options to see the value: `memory/MemorySettingsPanel.tsx` reads two
- * keys with `returnObjects` and maps them as arrays, and a probe without that
- * option gets i18next's "returned an object instead of string" diagnostic — a
- * nonempty string, which passed, while the surface rendered no rows.
+ * the call's options to see the value: a list consumer using `returnObjects`
+ * would map the result as an array, while a probe without that option gets
+ * i18next's "returned an object instead of string" diagnostic — a nonempty
+ * string, which passes even though the consumer cannot render any rows.
*
* A collection has to be nonempty AND renderable in every slot, because a locale
* that keeps the array and empties an entry renders a blank row rather than a raw
@@ -1017,7 +1014,7 @@ export const parityGaps = (
* string; turn it into an object and i18next hands back its diagnostic instead
* of copy. A call reading `returnObjects` maps the value, so it has to be a list
* of strings; turn it into an object, a plain string, or a list of objects and
- * `MemorySettingsPanel` throws on `.map` or hands React an object child.
+ * a list consumer throws on `.map` or hands React an object child.
*
* That shape is read off the call, exactly as `count` is, so a second site
* asking for a list is covered without naming its keys here.
@@ -1533,8 +1530,8 @@ describe('app i18n key coverage', () => {
missingCopy(localeInstance('en', { fixture: { listA: value } }), 'en', listed);
expect(check(['one', 'two'])).toBe(false);
- // The two shapes that read as copy and still throw on `.map`, which is what
- // `MemorySettingsPanel` does with the result. Renderable is not enough here.
+ // These shapes read as copy but fail when a list consumer calls `.map`.
+ // Renderable is not enough here.
expect(check({ 0: 'one', 1: 'two' })).toBe(true);
expect(check('one, two')).toBe(true);
// And a plain call is unaffected: a string is all it ever needed.
@@ -1583,11 +1580,11 @@ describe('app i18n key coverage', () => {
expect(call({ card: {} }, echo)).toBe(false);
// The escapes this round closed, at the boundary that closes them. Each name
- // is fine on the NAME side — one is a list the app really reads, one is a
- // pinned prefix — and neither classification reaches a call it cannot serve.
+ // is fine on the NAME side — one is a list-shaped fixture, one is a pinned
+ // prefix — and neither classification reaches a call it cannot serve.
const onList = (over: Partial<Reference> = {}): Reference =>
- ({ key: 'memory.rows', counted: false, listed: false, demand: 'exact', ...over });
- const rows = { memory: { rows: ['one', 'two'] } };
+ ({ key: 'fixture.rows', counted: false, listed: false, demand: 'exact', ...over });
+ const rows = { fixture: { rows: ['one', 'two'] } };
expect(call(rows, onList())).toBe(true); // a plain call renders `[object Object]`
expect(call(rows, onList({ demand: 'none' }))).toBe(true); // and a default does not cover a present key
expect(call(rows, onList({ listed: true }))).toBe(false); // the consumer that reads it is untouched
diff --git a/vibe/cli.py b/vibe/cli.py
index 4aab04eae..b48818da8 100644
--- a/vibe/cli.py
+++ b/vibe/cli.py
@@ -11431,14 +11431,6 @@ def _managed_dependencies_doctor_items(*, deep: bool = False) -> list[dict]:
status = str(dependency.get("status") or "missing")
ready = bool(dependency.get("installed")) and status == "ready"
version = dependency.get("version")
- memory_details = (
- {
- "dependency_reason": dependency.get("reason"),
- "dependency_required": bool(dependency.get("required")),
- }
- if False
- else {}
- )
if ready:
if dependency_id == "git-runtime" and dependency.get("source") == "system":
_add_doctor_item(
@@ -11459,7 +11451,6 @@ def _managed_dependencies_doctor_items(*, deep: bool = False) -> list[dict]:
),
code=f"dependencies.{dependency_id}.ready",
dependency_status=None,
- **memory_details,
)
continue
@@ -11482,13 +11473,8 @@ def _managed_dependencies_doctor_items(*, deep: bool = False) -> list[dict]:
severity,
i18n_t("doctor.item.dependencyPlatformUnsupported", language, label=label),
i18n_t("doctor.action.dependencyPlatformUnsupported", language),
- code=(
- f"dependencies.{dependency_id}.unsupported"
- if False
- else f"dependencies.{dependency_id}.platform_unsupported"
- ),
+ code=f"dependencies.{dependency_id}.platform_unsupported",
dependency_status=None,
- **memory_details,
)
continue