Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
aac4d66
Bump version to v0.7.0
albert-gee Oct 22, 2026
0c55c7f
Preserve editor focus and viewport across passive restoration
albert-gee Oct 22, 2026
698795d
Repair document history ownership, synchronization, and recovery
albert-gee Oct 22, 2026
da106f0
Verify long typing groups through workspace Undo and Redo
albert-gee Oct 22, 2026
d0844de
Fix heading boundaries and structural content preservation
albert-gee Oct 22, 2026
b8dd70c
Preserve inline image positions beside existing line breaks
albert-gee Oct 23, 2026
4ab40d0
Keep traversal recovery valid after history retention
albert-gee Oct 23, 2026
b139f51
Guard deferred dialog and selection focus restoration
albert-gee Oct 23, 2026
8b9aa85
Respect newer focus when canceling semantic text dialogs
albert-gee Oct 23, 2026
3007fa1
Guard passive menu and review focus restoration
albert-gee Oct 23, 2026
77a5b5a
Merge pull request #58 from busystack/fix/history-reset-bug
ChenZhenIO Oct 23, 2026
9c3acfa
Merge release/v0.7.0 into fix/editor-view
albert-gee Oct 23, 2026
19efa43
Merge pull request #59 from busystack/fix/editor-view
ChenZhenIO Oct 23, 2026
476ce5e
Enhance Local History search performance, persistence, and restore sa…
albert-gee Oct 23, 2026
a2cb98d
Add `WorkspaceFileDecodingException` to retain file snapshots on UTF-…
albert-gee Oct 23, 2026
c0ff08a
Merge pull request #61 from busystack/fix/local-history-bugs
ChenZhenIO Oct 23, 2026
9eb528c
Feature/git package (#62)
albert-gee Nov 10, 2026
8c6cd88
Use shared Git decorations in the Files tree
albert-gee Nov 10, 2026
c405f02
Preserve authoring path boundaries in Git decoration adaptation
albert-gee Nov 10, 2026
f97c31c
Keep directory tooltips visible and monitor nested Linux changes
albert-gee Nov 11, 2026
fe8b110
Pin shared directory message and review regression corrections
albert-gee Nov 11, 2026
eac76fa
Wait for asynchronous workspace monitoring in tab fixtures
albert-gee Nov 11, 2026
d89fff1
Await ready workspaces before smoke-test interactions
albert-gee Nov 11, 2026
64ae612
Dispose close-window fixture monitors before timer verification
albert-gee Nov 11, 2026
2a682a0
Translate directory change explanations in every supported catalog
albert-gee Nov 11, 2026
4375503
Integrate explicit shared Log selection and preserve native regressio…
albert-gee Nov 11, 2026
6f6de3e
Match complete native accessibility lines in Log smoke readiness checks
albert-gee Nov 11, 2026
3a6d769
Use shared native Log sidebar icon and localized visibility tooltips
albert-gee Nov 11, 2026
9166bc7
Add mnemonic view selectors and retire Git action shortcuts
albert-gee Nov 12, 2026
e38ea3f
Fix selector focus and trace native keyboard dispatch
albert-gee Nov 12, 2026
54f34df
Fix native view selectors with unavailable menu entries
albert-gee Nov 12, 2026
d64da30
Settle workspace fixture I/O and dispose providers before invariants
albert-gee Nov 12, 2026
7dd905d
Fix selector menus blocked by unrelated pressed keys
albert-gee Nov 12, 2026
4d0798c
Fix Git CI decoration audit and native selector navigation
albert-gee Nov 13, 2026
2a5665c
Isolate headless Chromium fixtures from runner D-Bus
albert-gee Nov 13, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
174 changes: 168 additions & 6 deletions .github/workflows/flutter-linux-native.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
libglib2.0-dev \
libpango1.0-dev \
libhandy-1-dev \
libsecret-1-dev \
libsecret-1-dev libcurl4-openssl-dev libssl-dev libexpat1-dev zlib1g-dev \
libwebkit2gtk-4.1-dev \
python3-gi \
rsync \
Expand Down Expand Up @@ -100,7 +100,14 @@ jobs:
- name: Resolve locked dependencies
id: flutter-packages
if: ${{ !cancelled() && steps.flutter-sdk.outcome == 'success' }}
run: flutter pub get --enforce-lockfile
run: |
python3 tools/checkout_shared_dependencies.py
python3 ../busystack_git/tool/build_runtime.py --build-dir "$RUNNER_TEMP/git-native"
echo "BUSYSTACK_GIT_EXECUTABLE=$RUNNER_TEMP/git-native/git-runtime/bin/git" >> "$GITHUB_ENV"
echo "BUSYSTACK_TEST_GIT=$RUNNER_TEMP/git-native/git-runtime/bin/git" >> "$GITHUB_ENV"
echo "BUSYSTACK_TEST_GIT_256=$RUNNER_TEMP/git-native/git-runtime/bin/git" >> "$GITHUB_ENV"
echo "BUSYSTACK_GIT_HELPER_PATH=$RUNNER_TEMP/git-native/busystack-git-helper" >> "$GITHUB_ENV"
flutter pub get --enforce-lockfile

- name: Build Linux release
id: release-build
Expand Down Expand Up @@ -171,12 +178,113 @@ jobs:
- name: Build strict Snap from a clean core24 environment (attempt 1)
id: snapcraft
uses: snapcore/action-build@v1
with:
snapcraft-args: --verbosity=debug
continue-on-error: true

- name: Retry strict Snap build after an infrastructure failure
id: snapcraft-retry
if: steps.snapcraft.outcome == 'failure'
uses: snapcore/action-build@v1
with:
snapcraft-args: --verbosity=debug

- name: Collect official Snapcraft and Snapd failure diagnostics
if: ${{ !cancelled() && (steps.snapcraft.outcome == 'failure' || steps.snapcraft-retry.outcome == 'failure') }}
env:
SNAPCRAFT_DIAGNOSTICS: ${{ runner.temp }}/snapcraft-build-diagnostics
run: |
python3 - <<'PY'
import json
import os
from pathlib import Path
import shlex
import subprocess

output = Path(os.environ['SNAPCRAFT_DIAGNOSTICS'])
output.mkdir(parents=True, exist_ok=True)
credentials = [value for key, value in os.environ.items()
if len(value) >= 8 and any(word in key.upper()
for word in ('TOKEN', 'PASSWORD', 'SECRET'))]

def redact(text):
for value in credentials:
text = text.replace(value, '[REDACTED]')
return text

source = Path.home() / '.local/state/snapcraft/log'
if source.is_dir():
for path in source.rglob('*.log'):
if not path.is_file() or path.is_symlink():
continue
target = output / 'snapcraft' / path.relative_to(source)
target.parent.mkdir(parents=True, exist_ok=True)
target.write_text(redact(path.read_text(errors='replace')))
records = []

def capture(argv):
print('+ ' + shlex.join(argv), flush=True)
try:
result = subprocess.run(argv, stdout=subprocess.PIPE,
stderr=subprocess.STDOUT, text=True, timeout=45)
text, code = result.stdout, result.returncode
except subprocess.TimeoutExpired as error:
text = error.stdout or ''
if isinstance(text, bytes):
text = text.decode(errors='replace')
text += '\nDiagnostic command timed out after 45 seconds.\n'
code = 124
except OSError as error:
text, code = str(error) + '\n', 127
text = redact(text)
path = output / f'{len(records):03}.log'
path.write_text(text)
records.append({'argv': argv, 'exitCode': code, 'log': path.name})
(output / 'commands.json').write_text(json.dumps(records, indent=2))
print(text, flush=True)
return code, text

def snapd(prefix):
capture(prefix + ['snap', 'version'])
capture(prefix + ['journalctl', '-u', 'snapd.service',
'--no-pager', '-n', '500'])
code, changes = capture(prefix + ['snap', 'changes', '--abs-time'])
if code == 0:
for line in changes.splitlines():
fields = line.split()
if fields and fields[0].isdigit():
capture(prefix + ['snap', 'tasks', fields[0]])

snapd(['sudo', '-n'])
lxc = ['sudo', '-n', 'lxc', '--project', 'snapcraft']
code, listing = capture(lxc + ['list', '--format', 'json'])
if code == 0:
for instance in json.loads(listing):
name = instance['name']
if not name.startswith('snapcraft-busymark-'):
continue
started = False
if instance['status'] == 'Stopped':
code, _ = capture(lxc + ['start', name])
if code != 0:
continue
started = True
elif instance['status'] != 'Running':
continue
try:
snapd(lxc + ['exec', name, '--'])
finally:
if started:
capture(lxc + ['stop', name])
PY

- name: Preserve official Snapcraft build diagnostics
if: ${{ !cancelled() && (steps.snapcraft.outcome == 'failure' || steps.snapcraft-retry.outcome == 'failure') }}
uses: actions/upload-artifact@v7
with:
name: snapcraft-build-diagnostics
path: ${{ runner.temp }}/snapcraft-build-diagnostics
if-no-files-found: warn

- name: Select built Snap
if: ${{ !cancelled() && steps.snap-inspection.outcome == 'success' && (steps.snapcraft.outcome == 'success' || steps.snapcraft-retry.outcome == 'success') }}
Expand Down Expand Up @@ -218,7 +326,7 @@ jobs:
if: ${{ !cancelled() && steps.snap-artifact.outcome == 'success' }}
run: |
sudo apt-get update
sudo apt-get install -y weston xvfb python3-gi gir1.2-gtk-3.0 gsettings-desktop-schemas dconf-cli dbus-daemon dbus-user-session
sudo apt-get install -y weston xvfb python3-gi gir1.2-gtk-3.0 gsettings-desktop-schemas dconf-cli dbus-daemon dbus-user-session at-spi2-core xdg-desktop-portal-gtk

- name: Install strict Snap
id: strict-install
Expand All @@ -237,6 +345,32 @@ jobs:
test -S "$runtime_dir/bus"
echo "XDG_RUNTIME_DIR=$runtime_dir" >> "$GITHUB_ENV"
echo "DBUS_SESSION_BUS_ADDRESS=unix:path=$runtime_dir/bus" >> "$GITHUB_ENV"
export XDG_RUNTIME_DIR="$runtime_dir"
export DBUS_SESSION_BUS_ADDRESS="unix:path=$runtime_dir/bus"
# The confined clients need the real desktop services to own their
# bus names before launch. Keep their display alive across the smoke
# steps, which create separate X11 and Wayland application displays.
display_file="${RUNNER_TEMP}/strict-session-display"
Xvfb -displayfd 3 -screen 0 1280x1024x24 -nolisten tcp \
3>"$display_file" >"${RUNNER_TEMP}/strict-session-xvfb.log" 2>&1 &
display_pid=$!
echo "$display_pid" > "${RUNNER_TEMP}/strict-session-xvfb.pid"
for attempt in {1..40}; do
if [ -s "$display_file" ]; then break; fi
kill -0 "$display_pid"
sleep 0.25
done
test -s "$display_file"
export DISPLAY=":$(cat "$display_file")"
systemctl --user import-environment DISPLAY
systemctl --user start at-spi-dbus-bus.service \
xdg-desktop-portal-gtk.service xdg-desktop-portal.service
a11y_address="$(gdbus call --session --dest org.a11y.Bus \
--object-path /org/a11y/bus --method org.a11y.Bus.GetAddress \
| python3 -c 'import ast,sys; print(ast.literal_eval(sys.stdin.read())[0])')"
gdbus call --address "$a11y_address" --dest org.a11y.atspi.Registry \
--object-path /org/a11y/atspi/registry \
--method org.a11y.atspi.Registry.GetRegisteredEvents

- name: Enable parallel Snap instances
if: ${{ !cancelled() && inputs.run-stress && steps.strict-install.outcome == 'success' }}
Expand Down Expand Up @@ -295,7 +429,9 @@ jobs:
if: ${{ !cancelled() && steps.strict-install.outcome == 'success' && steps.strict-session.outcome == 'success' }}
run: |
snap run --shell busymark -c '
set -eu
# Trace assertions so a missing resource or duplicate library names
# its exact condition and path before the strict audit exits.
set -eux
inspect_dependencies() {
dependency_object="$1"
if dependency_output="$(ldd "$dependency_object" 2>&1)"; then
Expand Down Expand Up @@ -536,6 +672,25 @@ jobs:
~/snap/busymark_fixture/common/close-live
if-no-files-found: ignore

- name: Stop strict-Snap desktop session
if: always()
run: |
pid_file="${RUNNER_TEMP}/strict-session-xvfb.pid"
if [ -f "$pid_file" ]; then
export XDG_RUNTIME_DIR="/run/user/$(id -u)"
export DBUS_SESSION_BUS_ADDRESS="unix:path=$XDG_RUNTIME_DIR/bus"
cleanup_status=0
systemctl --user stop xdg-desktop-portal.service \
xdg-desktop-portal-gtk.service at-spi-dbus-bus.service \
|| cleanup_status=$?
display_pid="$(cat "$pid_file")"
if kill -0 "$display_pid" 2>/dev/null; then
test "$(ps -p "$display_pid" -o comm=)" = Xvfb
kill "$display_pid"
fi
exit "$cleanup_status"
fi

development-modes:
name: Native release acceptance (${{ matrix.mode }})
if: ${{ inputs.run-stress }}
Expand All @@ -551,7 +706,7 @@ jobs:
run: |
sudo apt-get update
sudo apt-get install -y apparmor-profiles bubblewrap clang cmake ninja-build pkg-config curl xz-utils \
libgtk-3-dev libhandy-1-dev libsecret-1-dev libwebkit2gtk-4.1-dev \
libgtk-3-dev libhandy-1-dev libsecret-1-dev libwebkit2gtk-4.1-dev libcurl4-openssl-dev libssl-dev libexpat1-dev zlib1g-dev \
fonts-noto-core fonts-noto-mono gsettings-desktop-schemas dconf-cli python3-gi gir1.2-webkit2-4.1 xvfb dbus-daemon
- name: Enable Bubblewrap sandbox for WebKitGTK tests
id: web-sandbox
Expand Down Expand Up @@ -584,7 +739,14 @@ jobs:
channel: stable
flutter-version: '3.47.5'
cache: true
- run: flutter pub get --enforce-lockfile
- run: |
python3 tools/checkout_shared_dependencies.py
python3 ../busystack_git/tool/build_runtime.py --build-dir "$RUNNER_TEMP/git-native"
echo "BUSYSTACK_GIT_EXECUTABLE=$RUNNER_TEMP/git-native/git-runtime/bin/git" >> "$GITHUB_ENV"
echo "BUSYSTACK_TEST_GIT=$RUNNER_TEMP/git-native/git-runtime/bin/git" >> "$GITHUB_ENV"
echo "BUSYSTACK_TEST_GIT_256=$RUNNER_TEMP/git-native/git-runtime/bin/git" >> "$GITHUB_ENV"
echo "BUSYSTACK_GIT_HELPER_PATH=$RUNNER_TEMP/git-native/busystack-git-helper" >> "$GITHUB_ENV"
flutter pub get --enforce-lockfile
id: flutter-packages
if: ${{ !cancelled() && steps.flutter-sdk.outcome == 'success' }}
- name: Build official development mode
Expand Down
87 changes: 80 additions & 7 deletions .github/workflows/flutter-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
pull_request:
branches:
- main
- release/v0.6.3
- release/v0.7.0
push:
branches:
- main
Expand Down Expand Up @@ -46,6 +46,7 @@ jobs:
clang \
cmake \
dbus-daemon \
gnome-keyring \
gsettings-desktop-schemas \
dconf-cli \
fonts-noto-core \
Expand All @@ -57,16 +58,19 @@ jobs:
libglib2.0-dev \
libpango1.0-dev \
libhandy-1-dev \
libsecret-1-dev \
libsecret-1-dev libcurl4-openssl-dev libssl-dev libexpat1-dev zlib1g-dev \
libwebkit2gtk-4.1-dev \
gir1.2-webkit2-4.1 \
poppler-utils \
python3-gi \
python3-gi-cairo \
python3-pil \
python3-yaml \
rsync \
xvfb \
weston \
x11-xserver-utils \
xdg-desktop-portal-gtk \
xz-utils

- name: Enable Bubblewrap sandbox for WebKitGTK tests
Expand Down Expand Up @@ -112,7 +116,42 @@ jobs:
- name: Resolve locked dependencies
id: flutter-packages
if: ${{ !cancelled() && steps.flutter-sdk.outcome == 'success' }}
run: flutter pub get --enforce-lockfile
run: |
python3 tools/checkout_shared_dependencies.py
python3 ../busystack_git/tool/build_runtime.py --build-dir "$RUNNER_TEMP/git-native"
echo "BUSYSTACK_GIT_EXECUTABLE=$RUNNER_TEMP/git-native/git-runtime/bin/git" >> "$GITHUB_ENV"
echo "BUSYSTACK_TEST_GIT=$RUNNER_TEMP/git-native/git-runtime/bin/git" >> "$GITHUB_ENV"
echo "BUSYSTACK_TEST_GIT_256=$RUNNER_TEMP/git-native/git-runtime/bin/git" >> "$GITHUB_ENV"
echo "BUSYSTACK_GIT_HELPER_PATH=$RUNNER_TEMP/git-native/busystack-git-helper" >> "$GITHUB_ENV"
flutter pub get --enforce-lockfile

- name: Verify shared Git runtime and engine
if: ${{ !cancelled() && steps.flutter-packages.outcome == 'success' }}
working-directory: ../busystack_git
run: |
dart pub get --enforce-lockfile
dart run tool/check_git.dart
dart test

- name: Verify shared Git desktop views
if: ${{ !cancelled() && steps.flutter-packages.outcome == 'success' }}
working-directory: ../busystack_git_flutter
run: |
flutter pub get --enforce-lockfile
dart run tool/test_native_presentation_audit.dart
dart run tool/check_native_presentation.dart lib/src ../busymark/lib/src/git \
--host-source ../busymark/lib/src/git/application/shared_git_presentation.dart \
--host-root BusyMarkGitPresentation \
--host-root BusyMarkGitDialogShell
(cd ../busymark/tools/git_ui_audit && dart pub get --offline --enforce-lockfile && dart run bin/check.dart --self-test && dart run bin/check.dart && dart run bin/check_design_boundary.dart --self-test && dart run bin/check_design_boundary.dart && dart run bin/check_sidebar.dart --self-test && dart run bin/check_sidebar.dart)
flutter test
cmake -S linux/native -B "$RUNNER_TEMP/git-accessibility" -G Ninja
cmake --build "$RUNNER_TEMP/git-accessibility"
dbus-run-session -- xvfb-run -a ctest --test-dir "$RUNNER_TEMP/git-accessibility" --output-on-failure

- name: Test native artifact and full-corpus qualification
if: ${{ !cancelled() && steps.flutter-packages.outcome == 'success' }}
run: python3 -m unittest tools/test_git_native_build_receipt.py tools/test_git_native_snap_receipt.py tools/test_verify_flutter_test_corpus.py

- name: Test production GTK accent lookup and observer
if: ${{ !cancelled() && steps.linux-dependencies.outcome == 'success' }}
Expand All @@ -128,7 +167,13 @@ jobs:

- name: Generate localizations
if: ${{ !cancelled() && steps.flutter-packages.outcome == 'success' }}
run: flutter gen-l10n
run: |
python3 ../busystack_git_flutter/tool/sync_host_localizations.py \
--arb lib/l10n/app_en.arb \
--adapter lib/src/git/application/shared_git_localizations.dart \
--class-name AppLocalizations \
--import-uri ../../../l10n/generated/app_localizations.dart --check
flutter gen-l10n

- name: Audit localization catalogs
if: ${{ !cancelled() && steps.flutter-packages.outcome == 'success' }}
Expand Down Expand Up @@ -167,7 +212,24 @@ jobs:
- name: Build Linux release
if: ${{ !cancelled() && steps.flutter-packages.outcome == 'success' && steps.linux-dependencies.outcome == 'success' && steps.node.outcome == 'success' }}
id: release-build
run: flutter build linux --release
run: |
python3 tools/git_native_build_receipt.py capture build/linux/x64/release/git-native-source.json
flutter build linux --release
python3 tools/git_native_build_receipt.py seal build/linux/x64/release/git-native-source.json build/linux/x64/release/bundle/busymark

- name: Capture production Git native presentation matrix
if: ${{ !cancelled() && steps.release-build.outcome == 'success' }}
run: /usr/bin/python3 tools/git_native_smoke.py build/linux/x64/release/bundle/busymark build/git-native-acceptance

- name: Preserve native Git acceptance evidence
if: always()
uses: actions/upload-artifact@v7
with:
name: git-native-acceptance
path: |
build/git-native-acceptance
build/linux/x64/release/git-native-source.json
if-no-files-found: ignore

- name: Test production GTK accent channel host and lifecycle
if: ${{ !cancelled() && steps.release-build.outcome == 'success' }}
Expand Down Expand Up @@ -305,16 +367,27 @@ jobs:
/usr/bin/python3 -m unittest tools/test_owned_processes.py \
tools/test_application_close_smoke.py \
tools/test_run_owned_fixture.py \
tools/test_official_flutter_workflow.py
tools/test_official_flutter_workflow.py \
tools/test_git_native_build_receipt.py \
tools/test_git_native_snap_receipt.py \
tools/test_git_native_geometry.py \
tools/test_visualization_dependency_policy.py

- name: Test including bundled D2 and Typst paths
if: ${{ !cancelled() && steps.release-build.outcome == 'success' }}
env:
BUSYMARK_D2_PATH: ${{ github.workspace }}/build/linux/x64/release/bundle/libexec/busymark/d2
BUSYMARK_TYPST_PATH: ${{ github.workspace }}/build/linux/x64/release/bundle/libexec/busymark/typst
BUSYMARK_TEST_SPELLING_ROOT: ${{ github.workspace }}/build/spelling-test
# Real durable fixtures share the runner's filesystem. Keep the full
# suite bounded independently of a developer machine's CPU count.
run: flutter test --concurrency=2
run: |
test -s "$BUSYMARK_TEST_SPELLING_ROOT/dictionaries.json"
xvfb-run -a -s '-screen 0 1600x1100x24' \
bash -euo pipefail <<'TESTS'
export BUSYMARK_NATIVE_DIALOG_TEST_DISPLAY="$DISPLAY"
exec flutter test --concurrency=2
TESTS

- name: Preserve compiled visualization report
if: always()
Expand Down
Loading
Loading