Skip to content
Closed
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
8 changes: 8 additions & 0 deletions packages/desktop/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
# CHANGELOG


## v0.31.1 (2026-11-22)

### Bug Fixes

- **desktop**: refuse symlink exception cards on Windows



## v0.31.0 (2026-11-21)

### Features
Expand Down
2 changes: 1 addition & 1 deletion packages/desktop/openadapt_desktop/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@
+-- backends/ Storage backend plugins
"""

__version__ = "0.31.0"
__version__ = "0.31.1"
7 changes: 7 additions & 0 deletions packages/desktop/openadapt_desktop/exception_queue.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,13 @@ def registry_root() -> Path:


def _read(path: Path) -> bytes | None:
try:
if stat.S_ISLNK(os.lstat(path).st_mode):
return None
except OSError:
return None
# O_NOFOLLOW is the atomic check on POSIX. On Windows it may be missing
# or a no-op, so the lstat above is what refuses a link.
flags = os.O_RDONLY | getattr(os, "O_NOFOLLOW", 0) | getattr(os, "O_CLOEXEC", 0)
try:
fd = os.open(path, flags)
Expand Down
4 changes: 2 additions & 2 deletions packages/desktop/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/desktop/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "openadapt-desktop",
"version": "0.31.0",
"version": "0.31.1",
"description": "Installed companion for OpenAdapt authoring, teaching, and local pairing",
"private": true,
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion packages/desktop/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "hatchling.build"

[project]
name = "openadapt-desktop"
version = "0.31.0"
version = "0.31.1"
description = "The OpenAdapt desktop app and local engine: record a data-entry task, run it on a list, and check each saved record"
readme = "README.md"
requires-python = ">=3.11"
Expand Down
2 changes: 1 addition & 1 deletion packages/desktop/src-tauri/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/desktop/src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "openadapt-desktop"
version = "0.31.0"
version = "0.31.1"
description = "Installed companion for OpenAdapt authoring, teaching, and local pairing"
authors = ["OpenAdapt AI"]
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion packages/desktop/src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "https://raw.githubusercontent.com/nicoverbruggen/tauri-v2-schema/main/schema.json",
"productName": "OpenAdapt Desktop",
"version": "0.31.0",
"version": "0.31.1",
"identifier": "ai.openadapt.desktop",
"build": {
"frontendDist": "../dist",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,11 @@ def test_the_window_signs_and_writes_the_runs_answer(queue, enclave): # noqa: F
assert result["ok"] is True and result["changed"] == 1
assert len(enclave.prompts) == 1
path = _answer_file(raw)
assert stat.S_IMODE(path.stat().st_mode) == 0o600
# Windows does not store POSIX 0o600 in st_mode (often 0o666 / 438).
# The writer still opens the file with 0o600; the bit check is POSIX-only,
# matching _read's `os.name == "posix"` permission-bit gate.
if os.name == "posix":
assert stat.S_IMODE(path.stat().st_mode) == 0o600
answer = json.loads(path.read_text())
assert answer["answer"] == "done_by_person"
assert answer["approver_kind"] == "person" and answer["route"] == "desktop"
Expand Down Expand Up @@ -388,6 +392,10 @@ def test_no_registry_folder_is_an_empty_list(tmp_path):
assert os.environ["OPENADAPT_HOME"]


@pytest.mark.skipif(
os.name != "posix",
reason="group/other permission bits are a POSIX check (see _read)",
)
def test_a_card_other_users_can_read_is_not_shown(queue): # noqa: F811
disp, _db, _keychain = queue
raw = _write_card()
Expand Down
2 changes: 1 addition & 1 deletion packages/desktop/uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading