This commit is contained in:
Joao Moura
2026-02-25 21:34:45 -08:00
parent 320326e3e5
commit 24c68d4053
2 changed files with 6 additions and 6 deletions

View File

@@ -290,16 +290,16 @@ class MemoryTUI(App[None]):
if self._memory is None:
panel.update(self._init_error or "No memory loaded.")
return
_DISPLAY_LIMIT = 1000
display_limit = 1000
info = self._memory.info(path)
self._last_scope_info = info
self._entries = self._memory.list_records(scope=path, limit=_DISPLAY_LIMIT)
self._entries = self._memory.list_records(scope=path, limit=display_limit)
panel.update(_format_scope_info(info))
panel.border_title = "Detail"
entry_list = self.query_one("#entry-list", OptionList)
capped = info.record_count > _DISPLAY_LIMIT
capped = info.record_count > display_limit
count_label = (
f"Entries (showing {_DISPLAY_LIMIT} of {info.record_count} — display limit)"
f"Entries (showing {display_limit} of {info.record_count} — display limit)"
if capped
else f"Entries ({len(self._entries)})"
)

View File

@@ -93,7 +93,7 @@ class LanceDBStorage:
soft, hard = resource.getrlimit(resource.RLIMIT_NOFILE)
if soft < 4096:
resource.setrlimit(resource.RLIMIT_NOFILE, (min(hard, 4096), hard))
except Exception:
except Exception: # noqa: S110
pass # Windows or already at the max hard limit — safe to ignore
self._compact_every = compact_every
@@ -217,7 +217,7 @@ class LanceDBStorage:
return
try:
self._table.create_scalar_index("scope", index_type="BTREE", replace=False)
except Exception:
except Exception: # noqa: S110
pass # index already exists, table empty, or unsupported version
# ------------------------------------------------------------------