Skip to content

chore: tweak pull retry logic - #10491

Merged
calmh merged 3 commits into
syncthing:mainfrom
calmh:jb/retries
Dec 23, 2025
Merged

calmh merged 3 commits into
syncthing:mainfrom
calmh:jb/retries

Conversation

@calmh

@calmh calmh commented Dec 13, 2025 •

Copy link
Copy Markdown
Member

This slightly changes how we account changes during a pull iteration and when we retry it immediately. As a reminder, in the code we have puller "iterations" (triggered when new updates come in or on a schedule) and "retries" (multiple attempts within an iteration).

Previously we'd account changed files with a somewhat vague definition (any attempted change in principle, except a few), and didn't differentiate between successes and failures. We'd perform retries while there were any attempted changes.

Now, I redefined changed as "something was actually committed to the database" -- an actual change. We do another iteration if there were actual changes (progress was made, so anything else blocked could potentially succeed now). We consider the pull "done" if there were no changes and no errors, otherwise we'll schedule a new pull iteration in the future.

This means that when there is, for example, a permission error that blocks progress we run into that failure once and then reschedule the pull (1m, 2m, etc). Previously, we'd retry the iteration multiple times for no good reason (there's no reason to think we'll make more progress by doing the exact same thing we just did once more).

This is also simpler to reason about, I think.

@github-actions github-actions Bot added the chore label Dec 13, 2025
Signed-off-by: Jakob Borg <[email protected]>
@calmh
calmh marked this pull request as ready for review December 13, 2025 11:48
@imsodin

imsodin commented Dec 21, 2025

Copy link
Copy Markdown
Member

This means that when there is, for example, a permission error that blocks progress we run into that failure once and then reschedule the pull (1m, 2m, etc).

I think we still do that now due to the new && pullErrNum == 0 condition: A permission error still is accounted as an error bumping this num. So is e.g. the invalid char case, where there's currently a changed--. And they need to be, as they should still be shown in the UI. Not saying the counting of changis as it is now is a good idea (clearly not), the new way is obviously better (and simpler). We either need a way to discern retryable and non-retryable errors, or we just keep the condition as is: If there was no progress (changes), don't retry only schedule a new iteration regardless of errors, with the assumption that any error will just repeat if nothing changed. I think that still holds even with the new, more strict definition of a change.

@calmh

calmh commented Dec 22, 2025

Copy link
Copy Markdown
Member Author

Yeah, the primary change is that now we only do it once. Previously we'd retry four times and then delay for a minute, etc.

@imsodin imsodin left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And you even changed the comment on the retry condition and I still got it wrong 🫩

@calmh
calmh merged commit f57e92c into syncthing:main Dec 23, 2025
Hancock33 added a commit to Hancock33/batocera.piboy that referenced this pull request Dec 24, 2025
--------------------------------------------------------------------------------------------------------
batocera-emulationstation.mk 811acf98f192004bda0bbb571b8dafa29b495403 # Version: Commits on Dec 22, 2025
--------------------------------------------------------------------------------------------------------
Merge pull request #2045 from fabricecaruso/win

[Evaluator] 6 chars integers can be processed as Hexadecimal Colors,

------------------------------------------------------------------------------------------------
batocera-es-piboy.mk 811acf98f192004bda0bbb571b8dafa29b495403 # Version: Commits on Dec 22, 2025
------------------------------------------------------------------------------------------------
Merge pull request #2045 from fabricecaruso/win

[Evaluator] 6 chars integers can be processed as Hexadecimal Colors,

------------------------------------------------------------------------------------------
dolphin-emu.mk 0a3aac6d85d1e276755e4f1a4215eef567c1c85c # Version: Commits on Dec 22, 2025
------------------------------------------------------------------------------------------
Merge pull request #14043 from iwubcode/custom_resource

VideoCommon: separate the concept of a 'resource' from an 'asset', add Material/Shader loading,

------------------------------------------------------------------------------------------
duckstation.mk 7bc32cdfa2789460705082d2f12b2b1aa229863f # Version: Commits on Dec 23, 2025
------------------------------------------------------------------------------------------
VulkanDevice: Swap EXT for KHR in structure type

No net difference.,

-----------------------------------------------------------------------------------
eden.mk fbd28a9d34c364af07347cdc7059886539b7cb55 # Version: Commits on Dec 23, 2025
-----------------------------------------------------------------------------------
[cmake] fix dynarmic tests (#3192)

-----------------------------------------------------------------------------------
play.mk 5171569d0018e02f731d63ac37d8c34da41ff0a7 # Version: Commits on Dec 23, 2025
-----------------------------------------------------------------------------------
Merge pull request #1518 from bagelswitch/lowerrecoil

reduce GPIO output threshold for recoil events to accomodate both I/O board types,

-----------------------------------------------------
ryujinx.mk 1.3.238 # Version: Commits on Dec 23, 2025
-----------------------------------------------------
Canary-1.3.238

-------------------------------------------------------------------------------------
ikemen.mk 6c554725355674f9c2a9128d0a4a2a1d291f08ff # Version: Commits on Dec 22, 2025
-------------------------------------------------------------------------------------
Merge pull request #2996 from rakieldev/newstuff

feat: runHiscore optional noOverlay parameter,

-------------------------------------------------------------------------------------------
moonlight-qt.mk b80d2a00c073d4514104a628be4315e81acf1853 # Version: Commits on Dec 23, 2025
-------------------------------------------------------------------------------------------
Fix SIGTERM unexpectedly quitting the host app,

---------------------------------------------------------------
ruffle.mk nightly-2025-12-23 # Version: Commits on Dec 23, 2025
---------------------------------------------------------------
## What's Changed

* core: Improve spurious key ignoring logic by @SuchAFuriousDeath in ruffle-rs/ruffle#22262

* render: Remove BorrowedOrOwnedTexture in favor of std::borrow::Cow by @SuchAFuriousDeath in ruffle-rs/ruffle#22573

**Full Changelog**: ruffle-rs/ruffle@nightly-2025-12-22...nightly-2025-12-23,

---------------------------------------------------------------------------------------
thextech.mk 0480b3ab4d053f90f7c9acd4ad3e3bc1caedac81 # Version: Commits on Dec 22, 2025
---------------------------------------------------------------------------------------
npc_hit.cpp: address v1.3.1 bug that killed whipped turtles (#1071),

------------------------------------------------------------------------------------
box64.mk d7f71d7a2f981db59a4d598c5e97d8fc7c2e5d4a # Version: Commits on Dec 21, 2025
------------------------------------------------------------------------------------
[WRAPPER] Added some more gstreamer wrapped symbols,

------------------------------------------------------------------------------------------
dxx-rebirth.mk b8fe5053c44a04b0114de34cdf9e4f52ecf1e50c # Version: Commits on Dec 23, 2025
------------------------------------------------------------------------------------------
`SConstruct`: show path to SConf log

GitHub Actions reports that the log cannot be found.  The path is shown

if SConf fails, but not if SConf succeeds.  Print to stdout the path to

the log, so that callers can find it even when SConf does not fail.,

----------------------------------------------------------------------------------------
openmohaa.mk be4e3fd7ac1b2560e481e64cd9d8a9cb6c2c1ea4 # Version: Commits on Dec 23, 2025
----------------------------------------------------------------------------------------
fix(gamespy): fix gamespy gcd authorize issues

This fixes:

- gcd not working when enabled

- a crash that occurs when the server processes gcd verification,

--------------------------------------------------------------------------------------
stalker.mk 3e34a7d9957c9ebf1ed542266985046fab05e81d # Version: Commits on Dec 22, 2025
--------------------------------------------------------------------------------------
Get rid of nagging warning about missing ed/ed_not_existing_texture.dds

That's a stub texture, which doesn't exist in SOC, so this warning really nags me when I work on SOC.,

----------------------------------------------------------------------------------------
supertux2.mk 46c73d77f45ed1cafc9291d1bf3f7ff30fb6c461 # Version: Commits on Dec 22, 2025
----------------------------------------------------------------------------------------
Fix granito movement propagation (#3441)

* Fix granito movement propagation

This should fix all situations where, for example, the Player falls off

the Granito when its climbing slopes.

Please test this with stacked/unstacked granitos on moving platforms by

checking if a player doesn't fall off of the granito.

* Fix granito rock bug,

------------------------------------------------------------
syncthing.mk v2.0.13-rc.1 # Version: Commits on Dec 23, 2025
------------------------------------------------------------
## Major changes in 2.0

- Database backend switched from LevelDB to SQLite. There is a migration on

  first launch which can be lengthy for larger setups. The new database is

  easier to understand and maintain and, hopefully, less buggy.

- The logging format has changed to use structured log entries (a message

  plus several key-value pairs). Additionally, we can now control the log

  level per package, and a new log level WARNING has been inserted between

  INFO and ERROR (which was previously known as WARNING...). The INFO level

  has become more verbose, indicating the sync actions taken by Syncthing. A

  new command line flag `--log-level` sets the default log level for all

  packages, and the `STTRACE` environment variable and GUI has been updated

  to set log levels per package. The `--verbose` and `--logflags` command

  line options have been removed and will be ignored if given.

- Deleted items are no longer kept forever in the database, instead they are

  forgotten after fifteen months. If your use case require deletes to take

  effect after more than a fifteen month delay, set the

  `--db-delete-retention-interval` command line option or corresponding

  environment variable to zero, or a longer time interval of your choosing.

- Modernised command line options parsing. Old single-dash long options are

  no longer supported, e.g. `-home` must be given as `--home`. Some options

  have been renamed, others have become subcommands. All serve options are

  now also accepted as environment variables. See  `syncthing --help` and

  `syncthing serve --help` for details.

- Rolling hash detection of shifted data is no longer supported as this

  effectively never helped. Instead, scanning and syncing is faster and more

  efficient without it.

- A \default folder\ is no longer created on first startup.

- Multiple connections are now used by default between v2 devices. The new

  default value is to use three connections: one for index metadata and two

  for data exchange.

- The following platforms unfortunately no longer get prebuilt binaries for

  download at syncthing.net and on GitHub, due to complexities related to

  cross compilation with SQLite:

  - dragonfly/amd64

  - solaris/amd64

  - linux/ppc64

  - netbsd/*

  - openbsd/386 and openbsd/arm

  - windows/arm

- The handling of conflict resolution involving deleted files has changed. A

  delete can now be the winning outcome of conflict resolution, resulting in

  the deleted file being moved to a conflict copy.

This release is also available as:

* APT repository: https://apt.syncthing.net/

* Docker image: `docker.io/syncthing/syncthing:2.0.13-rc.1` or `ghcr.io/syncthing/syncthing:2.0.13-rc.1`

  (`{docker,ghcr}.io/syncthing/syncthing:2` to follow just the major version)

## What's Changed

### Fixes

* fix(beacon): don't join multicast groups on non-multicast interfaces (fixes #10497) by @marbens-arch in syncthing/syncthing#10498

### Other

* chore(model): refactor context handling for folder type by @calmh in syncthing/syncthing#10472

* build: fix docker build by ensuring qemu by @calmh in syncthing/syncthing#10492

* chore(beacon): more verbose debug logging by @marbens-arch in syncthing/syncthing#10496

* build: fix hash failure by limiting globbing by @calmh in syncthing/syncthing#10505

* chore: tweak pull retry logic by @calmh in syncthing/syncthing#10491

**Full Changelog**: syncthing/syncthing@v2.0.12...v2.0.13-rc.1,

----------------------------------------------------------------------------------------
retroarch.mk 1ad5896b1708be58395178a00df3c0adc79cca83 # Version: Commits on Dec 23, 2025
----------------------------------------------------------------------------------------
add \hold\ button handling to overlays (#18526),

------------------------------------------------------------------------------------
rmtfs.mk f9847a777c4b1bd4c9dfdef457e46e8c5dc8e753 # Version: Commits on Dec 23, 2025
------------------------------------------------------------------------------------
Merge pull request #27 from quic-kdybcio/topic/slotsuffix

storage: Try opening the slot-suffixed partition,

----------------------------------------------------------------------------------------
doomretro.mk 3d55b626fe6300290a8675bcc117ff896a065969 # Version: Commits on Dec 23, 2025
----------------------------------------------------------------------------------------
Minor tweaks,

-----------------------------------------------------------------------------------------
sonic3-air.mk 1bf3c590355070269ecfb3689670daf9ff73f8cd # Version: Commits on Dec 22, 2025
-----------------------------------------------------------------------------------------
Various tweaks for file browser,

----------------------------------------------------------------------------------
trx.mk 2094983d2a6ee165a6a13ab282c03460e9a14979 # Version: Commits on Dec 22, 2025
----------------------------------------------------------------------------------
lara/common: prevent interactive movement in fly cheat

Resolves #4444.,

---------------------------------------------------------------------------------------------
libretro-vba-m.mk 84abedefceacb357fdc93fed82e35050f01fb428 # Version: Commits on Dec 22, 2025
---------------------------------------------------------------------------------------------
Fix potential heap corruption in lazy dialog loading

Clear static wxBoolEnHandler control vectors before reuse to prevent

accumulation of stale window pointers across multiple LoadDialog()

calls.

The getbe macro uses a static wxBoolEnHandler that persists for the

program's lifetime. Without clearing, the static handler accumulates

control pointers from different dialogs, leading to potential dangling

pointers if dialog lifecycles differ or if dialogs are destroyed.

While dialogs currently persist until program exit, this fix prevents

future corruption if dialog management changes and ensures the static

handlers start clean for each dialog initialization.

Related to lazy dialog loading introduced in 0648e766 (Fix 8 second

startup delay, 2025-12-01) and regression fix in 2fdd5dac (Fix

File->Close and Cheat List regressions, 2025-12-10).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>,
Hancock33 added a commit to Hancock33/batocera.piboy that referenced this pull request Jan 11, 2026
-----------------------------------------------------------------------------------
ares.mk b5910c75f565984ff521ab06aa4629b1f2712632 # Version: Commits on Jan 05, 2026
-----------------------------------------------------------------------------------
gba: prefetcher should fail reading across 128KiB boundaries,

----------------------------------------------------
clk.mk 2026-01-06 # Version: Commits on Jan 06, 2026
----------------------------------------------------
This release continues to iterate on improving the Qt build:

* it now uses OpenGL ES rather than OpenGL, which is better matched to Wayland, the Raspberry Pi, etc;

* issues with retention of UI selections are resolved;

* updated Snapcraft packaging better integrates that version with KDE Neon; and

* the recent 'dynamic crop' option has been added to the UI.

For SDL:

* OpenGL ES 3 is now preferred, with OpenGL 3.2 as an automatic fallback.

On the Mac, minimal changes:

* the non-functional 'File->Revert to Saved...' is now disabled, having previously either done nothing or crashed the application.

For those building for themselves:

* CMake can now make the Qt target, in addition to the SDL one;

* however, this project's traditional QMake target survives as Qt Creator's support for opening projects from CMake didn't function when tested.

As a result of both the build and Qt improvements, Snapcraft releases have resumed. Due to the OpenGL changes they are also now likely to work on a wider range of Linux targets.,

------------------------------------------------------------------------------------------
duckstation.mk a2f3d038dbc62036504aa849a130936e9b49b5e4 # Version: Commits on Jan 06, 2026
------------------------------------------------------------------------------------------
dep/imgui: Update to 69a501d,

--------------------------------------------------------------------------------------
flycast.mk 401332d520d921a77af00f0fc676b237a82dec48 # Version: Commits on Jan 06, 2026
--------------------------------------------------------------------------------------
sdl: don't run haptic sine effect if rumblePower is 0,

-------------------------------------------------------------------------------------
hatari.mk d9da1cd886aa3c5c29889945fedcfae83ec80557 # Version: Commits on Jan 06, 2026
-------------------------------------------------------------------------------------
Debugger: fix breakpoint options missing from debugger state save

Conditional breakpoints were added in Hatari v1.3.0, and this

regression came in v1.4.0.

After this fix there are still few potential pitfalls:

* Breakpoint file paths will be relative to saved state file

* Loaded debugger symbols are not saved / restored

* Debugger setting are not saved, in case user changed them

  after starting Hatari

Fixes: 48d8d9728ac,

--------------------------------------------------
pcsx2.mk v2.6.1 # Version: Commits on Jan 05, 2026
--------------------------------------------------
- [GameDB: CMR 2005 Fixes](PCSX2/pcsx2#13782)

,

-----------------------------------------------------------------------------------
play.mk bb6896e8cfd7346b0ddecb43752c854f1c7866f1 # Version: Commits on Jan 06, 2026
-----------------------------------------------------------------------------------
Merge pull request #1510 from bagelswitch/volumefixes

Add SPU2 BVOL and AVOL register write handling, and correct mixing to preserve relative volumes of channel and sound input data.,

-------------------------------------------------------------------------------------
ppsspp.mk 656db38ebc1d92ac81c45ac0e2ab691bde5eafa8 # Version: Commits on Jan 06, 2026
-------------------------------------------------------------------------------------
Merge pull request #21103 from hrydgard/misc-fixes

Today's round of misc fixes,

------------------------------------------------------------------------------------
rpcs3.mk 90df8baa5f296120b1fa02bda6df2f3e33cbc72d # Version: Commits on Jan 06, 2026
------------------------------------------------------------------------------------
Qt: Fix game list multi-selection after Refresh,

-------------------------------------------------------------------------------------
vita3k.mk 789b78d8ac044dad4725b276fffee29afa2ed90a # Version: Commits on Jan 06, 2026
-------------------------------------------------------------------------------------
vita3k: big game patch improvements (#3479),

------------------------------------------------------------
xenia.mk v1.0.2829-master # Version: Commits on Jan 06, 2026
------------------------------------------------------------
Windows release build for xenia-project/xenia@28b69c2.

[GPU] Document tiled texture address bits

Will be useful for calculating memory extents more precisely in the future.

-------------------------------------------------------------------------------------------
xenia-canary.mk beb52110e38f9de4d6d9e1af6cde266dc9f2a9df # Version: Commits on Jan 03, 2026
-------------------------------------------------------------------------------------------
[Memory] Use randomized values for scribble_heap instead of hardcoded one

This fixes Watchman - The End is Nigh which relay on UB on boot (OOR)

They're checking in hardcoded \game:\ for '/' character.

If it doesn't exist then adds 0x7FFFFFFE to start address and start searching from that location downward,

-------------------------------------------------------------------------------------------
xenia-native.mk beb52110e38f9de4d6d9e1af6cde266dc9f2a9df # Version: Commits on Jan 03, 2026
-------------------------------------------------------------------------------------------
[Memory] Use randomized values for scribble_heap instead of hardcoded one

This fixes Watchman - The End is Nigh which relay on UB on boot (OOR)

They're checking in hardcoded \game:\ for '/' character.

If it doesn't exist then adds 0x7FFFFFFE to start address and start searching from that location downward,

-----------------------------------------------------------------------------------
ymir.mk a0e1b2c3c2f8ebdfced0893b6543cfe9e264615a # Version: Commits on Jan 05, 2026
-----------------------------------------------------------------------------------
fix(savestates): Reformat code and fix off-by-one error in save state slot selection message,

-------------------------------------------------------------------------------------
ikemen.mk 0659082c8ef2fbc055d8a12dee2d8750c8227d4e # Version: Commits on Jan 06, 2026
-------------------------------------------------------------------------------------
style: fix code style issues with gofmt,

-------------------------------------------------------------------------------------------
moonlight-qt.mk ed98f256e807cba492436c78a18fa101fc3194c0 # Version: Commits on Jan 06, 2026
-------------------------------------------------------------------------------------------
Fix typo,

---------------------------------------------------------------
ruffle.mk nightly-2026-01-06 # Version: Commits on Jan 06, 2026
---------------------------------------------------------------
## What's Changed

* build(deps-dev): bump the npm-minor group in /web with 7 updates by @dependabot[bot] in ruffle-rs/ruffle#22639

* core: Propagate mouse events to children in reverse order by @SuchAFuriousDeath in ruffle-rs/ruffle#22670

* chore: Update translations from Crowdin by @kjarosh in ruffle-rs/ruffle#22694

* text: Allow small shear when displaying device text by @kjarosh in ruffle-rs/ruffle#22684

* chore: Migrate core to edition 2024 by @SuchAFuriousDeath in ruffle-rs/ruffle#22610

* core: Use system CA store for reqwest &  Enable SOCKS proxy support by @Xeleron in ruffle-rs/ruffle#22669

## New Contributors

* @Xeleron made their first contribution in ruffle-rs/ruffle#22669

**Full Changelog**: ruffle-rs/ruffle@nightly-2026-01-05...nightly-2026-01-06,

--------------------------------------------------------------------------------------
scummvm.mk 8572dc62537d06148007b877ded3d1d3bdadf587 # Version: Commits on Jan 05, 2026
--------------------------------------------------------------------------------------
I18N: Update translation (Ukrainian)

Currently translated at 85.2% (2610 of 3061 strings),

------------------------------------------------------------------------------------
box64.mk b9d36a205b11115756f09ae915f54574ca4f104f # Version: Commits on Jan 06, 2026
------------------------------------------------------------------------------------
[LA64_DYNAREC] Fixed CB opcode,

-----------------------------------------------------------------------------------------
catacombgl.mk ec77a3b0f9c008fd7860e6a869c428871226f7b6 # Version: Commits on Jan 05, 2026
-----------------------------------------------------------------------------------------
The Catacomb Abyss v1.12 EGAGRAPH has one picture less,

---------------------------------------------------------------------------------------
corsixth.mk d7bb75756d77c417e192a443b310ad4130f0481f # Version: Commits on Jan 05, 2026
---------------------------------------------------------------------------------------
Merge pull request #3180 from Fraggenard/japanese-announcer

Inherit from Japanese audio files if present,

------------------------------------------------------------------------------------------
devilutionx.mk 2b33dc09080f94873bbae55dca364fdd1db92a3d # Version: Commits on Jan 05, 2026
------------------------------------------------------------------------------------------
Add hp_mana_units.hpp helper,

----------------------------------------------------------------------------------------
supertux2.mk cf69678104316853c879ff6260a3117e0c3bfdec # Version: Commits on Jan 06, 2026
----------------------------------------------------------------------------------------
Add Russian translation of Comment to supertux2.desktop.in (#3541),

---------------------------------------------------------------------------------------
mangohud.mk 329733684cfb77b3400e90f74e8201bd2118f612 # Version: Commits on Jan 05, 2026
---------------------------------------------------------------------------------------
proc_vram: do not add gpu number if only one gpu is selected,

-------------------------------------------------------------------------------------------------
shadps4-qtlauncher.mk 980ad7cf0c800f1f8f1661cede97716946ccd552 # Version: Commits on Jan 05, 2026
-------------------------------------------------------------------------------------------------
fix float parsing (#225),

-------------------------------------------------------
syncthing.mk v2.0.13 # Version: Commits on Jan 06, 2026
-------------------------------------------------------
## Major changes in 2.0

- Database backend switched from LevelDB to SQLite. There is a migration on

  first launch which can be lengthy for larger setups. The new database is

  easier to understand and maintain and, hopefully, less buggy.

- The logging format has changed to use structured log entries (a message

  plus several key-value pairs). Additionally, we can now control the log

  level per package, and a new log level WARNING has been inserted between

  INFO and ERROR (which was previously known as WARNING...). The INFO level

  has become more verbose, indicating the sync actions taken by Syncthing. A

  new command line flag `--log-level` sets the default log level for all

  packages, and the `STTRACE` environment variable and GUI has been updated

  to set log levels per package. The `--verbose` and `--logflags` command

  line options have been removed and will be ignored if given.

- Deleted items are no longer kept forever in the database, instead they are

  forgotten after fifteen months. If your use case require deletes to take

  effect after more than a fifteen month delay, set the

  `--db-delete-retention-interval` command line option or corresponding

  environment variable to zero, or a longer time interval of your choosing.

- Modernised command line options parsing. Old single-dash long options are

  no longer supported, e.g. `-home` must be given as `--home`. Some options

  have been renamed, others have become subcommands. All serve options are

  now also accepted as environment variables. See  `syncthing --help` and

  `syncthing serve --help` for details.

- Rolling hash detection of shifted data is no longer supported as this

  effectively never helped. Instead, scanning and syncing is faster and more

  efficient without it.

- A \default folder\ is no longer created on first startup.

- Multiple connections are now used by default between v2 devices. The new

  default value is to use three connections: one for index metadata and two

  for data exchange.

- The following platforms unfortunately no longer get prebuilt binaries for

  download at syncthing.net and on GitHub, due to complexities related to

  cross compilation with SQLite:

  - dragonfly/amd64

  - solaris/amd64

  - linux/ppc64

  - netbsd/*

  - openbsd/386 and openbsd/arm

  - windows/arm

- The handling of conflict resolution involving deleted files has changed. A

  delete can now be the winning outcome of conflict resolution, resulting in

  the deleted file being moved to a conflict copy.

This release is also available as:

* APT repository: https://apt.syncthing.net/

* Docker image: `docker.io/syncthing/syncthing:2.0.13` or `ghcr.io/syncthing/syncthing:2.0.13`

  (`{docker,ghcr}.io/syncthing/syncthing:2` to follow just the major version)

## What's Changed

### Fixes

* fix(beacon): don't join multicast groups on non-multicast interfaces (fixes #10497) by @marbens-arch in syncthing/syncthing#10498

### Other

* chore(model): refactor context handling for folder type by @calmh in syncthing/syncthing#10472

* build: fix docker build by ensuring qemu by @calmh in syncthing/syncthing#10492

* chore(beacon): more verbose debug logging by @marbens-arch in syncthing/syncthing#10496

* build: fix hash failure by limiting globbing by @calmh in syncthing/syncthing#10505

* chore: tweak pull retry logic by @calmh in syncthing/syncthing#10491

**Full Changelog**: syncthing/syncthing@v2.0.12...v2.0.13,

----------------------------------------------------------------------------------------
retroarch.mk 8c1afaac4d7294d56010d1864a2f8c6335903518 # Version: Commits on Jan 06, 2026
----------------------------------------------------------------------------------------
Overlay Mouse: Alt 2-Touch Input option (#18580)

Use second touch as a mouse button while controlling the cursor.,

---------------------------------------------------------------------------------------------
easyrpg-player.mk fcef8dbadbc5a8a134a8c51721fdb75bcd41c014 # Version: Commits on Jan 06, 2026
---------------------------------------------------------------------------------------------
Merge pull request #3460 from Ghabry/ff-oob

String ToFile: Sanitize path,

----------------------------------------------------------------------------------------
doomretro.mk 3e6968f634859c562513a9a01a46b5c529c6abc0 # Version: Commits on Jan 06, 2026
----------------------------------------------------------------------------------------
Check ML_TWOSIDED flag instead of backsector,

--------------------------------------------------------------------------------------
vkquake.mk 46a772cf911f9bc874fb857fe6e026df1c36754b # Version: Commits on Jan 06, 2026
--------------------------------------------------------------------------------------
Initial optional SDL3 support (#843)

Currently just available with meson on Linux,

----------------------------------------------------------------------------------
trx.mk 9ecaa0eaec6fb6e6e6c9ddcff926ea79b6d82ede # Version: Commits on Jan 06, 2026
----------------------------------------------------------------------------------
strings: update Italian translation,

-----------------------------------------------------------------------------------------------
libretro-easyrpg.mk fcef8dbadbc5a8a134a8c51721fdb75bcd41c014 # Version: Commits on Jan 06, 2026
-----------------------------------------------------------------------------------------------
Merge pull request #3460 from Ghabry/ff-oob

String ToFile: Sanitize path,

----------------------------------------------------------------------------------------------
libretro-fake08.mk 4965cc9d57111d97cce0a0b52f31779b85984d6a # Version: Commits on Jan 06, 2026
----------------------------------------------------------------------------------------------
update z8lua with peek fix

fixes trichromat,

-----------------------------------------------------------------------------------------------
libretro-flycast.mk 401332d520d921a77af00f0fc676b237a82dec48 # Version: Commits on Jan 06, 2026
-----------------------------------------------------------------------------------------------
sdl: don't run haptic sine effect if rumblePower is 0,

-----------------------------------------------------------------------------------------------------
libretro-mame2003-plus.mk 9e119625ae7aab771c6f12e6e5ffccfd24b3bd4d # Version: Commits on Jan 05, 2026
-----------------------------------------------------------------------------------------------------
Revert on libretro/mame2003-plus-libretro@e784df7#diff-95593a8cc9cb2a6219f0bb66bfbad51d9021412b44ead88597c3db8a59c3da49,

----------------------------------------------------------------------------------------------
libretro-ppsspp.mk 656db38ebc1d92ac81c45ac0e2ab691bde5eafa8 # Version: Commits on Jan 06, 2026
----------------------------------------------------------------------------------------------
Merge pull request #21103 from hrydgard/misc-fixes

Today's round of misc fixes,

-----------------------------------------------------------------------------------------------
libretro-scummvm.mk 8572dc62537d06148007b877ded3d1d3bdadf587 # Version: Commits on Jan 05, 2026
-----------------------------------------------------------------------------------------------
I18N: Update translation (Ukrainian)

Currently translated at 85.2% (2610 of 3061 strings),

---------------------------------------------------------------------------------------------
libretro-vba-m.mk 35f214c28e6ff18b7fbbe138ad305ce2194c639e # Version: Commits on Jan 05, 2026
---------------------------------------------------------------------------------------------
gba: reset audio buffers on emu-reset/load-state

Re-initialize audio buffers on emulation reset and loading a state for

the GBA. This is already correct for the GB.

Done with Claude.

Signed-off-by: Rafael Kitover <[email protected]>,

---------------------------------------------------------------------------------------------
libretro-wasm4.mk dae7934e9a5495e72e3cfdd60b65fe2babf6140b # Version: Commits on Jan 05, 2026
---------------------------------------------------------------------------------------------
Merge pull request #851 from akleemans/patch-1

Add Nim examples for 2BPP format,

-------------------------------------------------------------------------------------
dhewm3.mk 3cac8d7faf4b3638c5e3fa68c152a3862a122300 # Version: Commits on Jan 05, 2026
-------------------------------------------------------------------------------------
Fix for desktop entries (#719)

Fix Exec command in Dhewm3 and Dhewm3 XP desktop entries

Removed unnecessary escape characters from Exec line.

When launching the game, it would stop at console with unknown command and wouldn't allow to user go further to the main menu,
cre4ture added a commit to cre4ture/thingium that referenced this pull request Jun 28, 2026
* chore(model): refactor context handling for folder type (syncthing#10472)

Signed-off-by: Jakob Borg <[email protected]>

* chore(stdiscosrv): larger write buffer

Signed-off-by: Jakob Borg <[email protected]>

* chore(stdiscosrv): use log/slog

Signed-off-by: Jakob Borg <[email protected]>

* chore(gui, man, authors): update docs, translations, and contributors

* chore(gui, man, authors): update docs, translations, and contributors

* build: fix docker build by ensuring qemu (syncthing#10492)

Signed-off-by: Jakob Borg <[email protected]>

* chore(gui, man, authors): update docs, translations, and contributors

* chore(beacon): more verbose debug logging (syncthing#10496)

Signed-off-by: Marcus B Spencer <[email protected]>

* fix(beacon): don't join multicast groups on non-multicast interfaces (fixes syncthing#10497) (syncthing#10498)

fix(beacon): don't join multicast groups on non-multicast interfaces

Signed-off-by: Marcus B Spencer <[email protected]>

* chore(gui, man, authors): update docs, translations, and contributors

* build: fix hash failure by limiting globbing (syncthing#10505)

The glob in **/go.sum fails in some builds because there are a lot of files in ** due to things like the zig cache directory. We can be more specific. Also, avoid a huge build context sent to Docker for the container builds.

---------

Signed-off-by: Jakob Borg <[email protected]>

* chore: tweak pull retry logic (syncthing#10491)

Signed-off-by: Jakob Borg <[email protected]>

* build: handle (ignore) new docker artifacts

* fix(beacon): skip point-to-point interfaces on Android (syncthing#10504)

* fix(db): remove incorrect comment

* chore(gui, man, authors): update docs, translations, and contributors

* chore(api): remove charset declaration from JSON content-type (fixes syncthing#10500) (syncthing#10508)

updated content-type  to application/json (fixes syncthing#10500)

Signed-off-by: prathik8794 <[email protected]>

* chore(gui, man, authors): update docs, translations, and contributors

* chore(gui, man, authors): update docs, translations, and contributors

* chore(sqlite): allow periodic database maintenance to be disabled (syncthing#10441)

This change allows the periodic database maintenance to be disabled, while providing a way to programmatically start maintenance at a convenient moment.

Signed-off-by: Tommy van der Vorst <[email protected]>

* chore(gui, man, authors): update docs, translations, and contributors

* chore(gui): include license files for fork-awesome assets (syncthing#10539)

The css and svg files have license headers, but there were no separate
license files like the other vendored assets in `gui/default/vendor/*`.
This issue came up while we were working on updating and modernizing the
syncthing package in Fedora Linux.

This commit copies the existing license headers into separate files
to make things easier for license scanning and SCA tools,
such as [Go Vendor Tools](https://fedora.gitlab.io/sigs/go/go-vendor-tools/).

* [...]/css/LICENSE.txt is copied from the license header in
  gui/default/vendor/fork-awesome/css/fork-awesome.css.
* [...]/fonts/LICENSE.txt is copied from the license text in the
  <metadata> tag of
  gui/default/vendor/fork-awesome/fonts/forkawesome-webfont.svg.

Relates: https://src.fedoraproject.org/rpms/syncthing/pull-request/4

Signed-off-by: Maxwell G <[email protected]>

* build: add build attestation step at release (syncthing#10540)

Signed-off-by: Jakob Borg <[email protected]>

* fix(stdiscosrv): use fmt.Println for version output (fixes syncthing#10523) (syncthing#10527)

Signed-off-by: Shivam <[email protected]>

* fix(stdiscosrv): log full device ID on startup (syncthing#10541)

Signed-off-by: maishivamhoo123 <[email protected]>

* chore(gui, man, authors): update docs, translations, and contributors

* build: increase allowed permissions for nightly build

Signed-off-by: Jakob Borg <[email protected]>

* chore(gui, man, authors): update docs, translations, and contributors

* fix(stdiscosrv): must not modify database entries in-place

Signed-off-by: Jakob Borg <[email protected]>

* refactor: remove unused support for Azure blob stores

Signed-off-by: Jakob Borg <[email protected]>

* chore(gui): add id and name to Stay logged in checkbox for password managers (syncthing#10558)

gui: Add id and name to Stay logged in checkbox for password manager support

Signed-off-by: epifeny <[email protected]>
Co-authored-by: epifeny <[email protected]>

* chore(gui, man, authors): update docs, translations, and contributors

* chore(db): add ability to wait for programmatically started database maintenance, query last maintenance time (syncthing#10565)

Also adds a method to query the last database maintenance time.

Signed-off-by: Tommy van der Vorst <[email protected]>
Co-authored-by: Jakob Borg <[email protected]>

* fix(gui): show restarting modal during upgrade restart (fixes syncthing#1248) (syncthing#10566)

Signed-off-by: steadytao <[email protected]>
Signed-off-by: Jakob Borg <[email protected]>
Co-authored-by: Jakob Borg <[email protected]>

* fix(gui): remove width limit for language select items (syncthing#10531)

Signed-off-by: Michael Wang <[email protected]>

* chore(etc): add more comprehensive systemd sandboxing (syncthing#10421)

Update the existing minimal service hardening with a comprehensive
sandbox to minimize blast damage from service compromise.

Please see the detailed code comments for an explanation of what is
sandboxed.

Roughly, we limit: /dev, /proc, /tmp, AF_UNIX, AF_PACKET, execution of
_any_ binary other than "/usr/bin/syncthing" and "/usr/lib",
uncommon syscalls plus io_uring, tons of kernel internals and more. We
also enable a bunch of kernel namespaces for isolation.

In short, pretty much everything is sandboxed and specifically tuned for
syncthing's behavior.

Sadly, we cannot use ProtectSystem=strict by default because we don't
know the directories that the user will be sharing. There's a big
comment block explaining how users can enable it for "extra credit". :)

If the user did add the following options as the unit file recommends:

- ProtectSystem=strict
- ReadWritePaths=/my/shared/dir1 /my/shared/dir2
- ProtectHome=true

Then the user would end up with a *far* more comprehensive sandbox than
anything a container runtime (like Docker/Podman/whatever) would
provide.

Much (but not all) of these options could be ported to the
user/syncthing.service file, BUT it would require work. Systemd does not
allow all of these options to be used with the user service manager,
although using PrivateUsers=true would help with most of it.

I cannot justify the time investment to develop, audit and test the
port to user/syncthing.service so I leave that for interested
contributors.

Tested on Debian Trixie (13) with the following versions:
- v1.29.5, Linux (64-bit Intel/AMD)
- latest HEAD (d3d3fc2 committed on Mon Oct 6 01:42:58 2025)

Signed-off-by: Val Markovic <[email protected]>

* chore: build with Go 1.26; use Go 1.25 features (syncthing#10570)

WaitGroup.Go and built-in gomaxprocs handling.

Signed-off-by: Jakob Borg <[email protected]>

* chore(config, connections): use same reconnection interval for QUIC and TCP (fixes syncthing#10507) (syncthing#10573)

Signed-off-by: Marcus B Spencer <[email protected]>

* chore(gui, man, authors): update docs, translations, and contributors

* chore(gui, man, authors): update docs, translations, and contributors

* chore(gui, man, authors): update docs, translations, and contributors

* chore: trigger rebuild

* build(deps): update dependencies (syncthing#10588)

Signed-off-by: Jakob Borg <[email protected]>

* fix(protocol): verify compressed message length before decompression (syncthing#10595)

* chore(gui, man, authors): update docs, translations, and contributors

* fix(systemd): support overrides for syncOwnership (syncthing#10602)

Syncthing docs in https://docs.syncthing.net/users/autostart.html#permissions
tell the user to set `AmbientCapabilities=CAP_CHOWN CAP_FOWNER` if the
user wishes to use the `syncOwnership` option.

syncthing#10421 broke `syncOwnership`
for users that followed that advice because the PR introduced
`CapabilityBoundingSet=` which cancels out any additional capabilities
granted with `AmbientCapabilities`.

(`AmbientCapabilities` _adds_ capabilities; `CapabilityBoundingSet`
_limits_ maximum capabilities to the specified set. Setting
`CapabilityBoundingSet` to an empty list prevents any capabilities from
being acquired in any way.)

This PR fixes the breakage by explicitly setting

    CapabilityBoundingSet=CAP_CHOWN CAP_FOWNER

This does _not_ grant any additional access rights to syncthing if the
user is not explicitly setting `AmbientCapabilities` as well, but it
does loosen the sandbox _a bit_. An attacker compromising the syncthing
process could now more easily expand their access to include
CAP_CHOWN/CAP_FOWNER even if the user is not setting
`AmbientCapabilities`.

Signed-off-by: Val Markovic <[email protected]>

* fix(systemd): add back chown allowed syscalls (syncthing#10605)

fix(systemd): Add back chown allowed syscalls

IFF the user enables the `syncOwnership` feature AND sets
`AmbientCapabilities=CAP_CHOWN CAP_FOWNER` as the docs in
https://docs.syncthing.net/users/autostart.html#permissions state,
THEN syncthing needs to use the `chown` syscall.

PR syncthing#10421 added a comprehensive sandbox that breaks `syncOwnership`.
In PR syncthing#10602 we fixed one part, which is expanding the default
`CapabilityBoundingSet` (see the PR for details).

But there's a very subtle bug that this PR fixes. PR syncthing#10421 sets the
following properties:

    SystemCallFilter=@System-service
    SystemCallFilter=~@PRIVILEGED io_uring_enter io_uring_register io_uring_setup

(Systemd merges `SystemCallFilter` values; we had to set the property
twice because to negate syscalls, the whole list has to start with `~`.)

The goal was to allow all syscalls in the `@system-service` set, BUT
disallow any `@privileged` syscalls and the `io_uring*` syscalls.

But the sets are not disjoint; `chown` is in both `@system-service` and
in `@privileged`, so it is removed from the allow list by the second
property value.

This property is also parsed in a very peculiar way. From systemd docs:

> If you specify both types of this option (i.e. allow-listing and
> deny-listing), the first encountered will take precedence and will
> dictate the default action (termination or approval of a system call).
> Then the next occurrences of this option will add or delete the listed
> system calls from the set of the filtered system calls, depending of its
> type and the default action. (For example, if you have started with an
> allow list rule for read() and write(), and right after it add a deny
> list rule for write(), then write() will be removed from the set.)

Not only does the order of `SystemCallFilter` properties matter (later
ones can undo effects of prior ones), but the _type_ of the _first_
property sets the overall behavior of the syscall filter: if the first
`SystemCallFilter` value is an allow list, then all syscalls that are
not specified are disallowed by default (and reverse if the first value
is a deny list).

Of course, this is completely different from how other allow/deny lists
are implemented in systemd; for example, `IPAddress[Allow|Deny]`
properties don't work like this at all. >:(

Since this complexity has bit us once, we're removing the additional
deny list of syscalls and sticking with just
`SystemCallFilter=@system-service`.

This leaves some privileged syscalls in the allow list. Other options
would require entering the "deny list by default" mode and deny lists
are less secure than allow lists in general because they have to be
maintained (the kernel always adds new syscalls). The rest of the
sandbox (capability bounds) should be sufficient.

Fixes syncthing#10603

Signed-off-by: Val Markovic <[email protected]>

* chore(sqlite): reduce max open connections, keep them open permanently (fixes syncthing#10592) (syncthing#10596)

chore(sqlite): reduce max open connections, keep them open permanently (fixes syncthing#10592)

Reduces connection churn, possibly tickling concurrency bug on Windows.

Signed-off-by: Jakob Borg <[email protected]>

* chore(gui, man, authors): update docs, translations, and contributors

* chore: remove tracking inode change time (syncthing#10579)



Signed-off-by: Jakob Borg <[email protected]>

* chore(gui, man, authors): update docs, translations, and contributors

* fix(stdiscosrv): close file descriptor on flush error in write (syncthing#10615)

The error path after bw.Flush() failed referenced fd.Close without calling it, so the descriptor was not closed when flush failed.

Signed-off-by: Weixie Cui <[email protected]>

* build(deps): temporarily switch to fork of gateway discovery library (fixes syncthing#10593) (syncthing#10594)



Signed-off-by: Marcus B Spencer <[email protected]>
Signed-off-by: Jakob Borg <[email protected]>
Co-authored-by: Jakob Borg <[email protected]>

* chore(gui, man, authors): update docs, translations, and contributors

* fix(gui): disable autocomplete for folder password (syncthing#10342)

Disable autocomplete

Signed-off-by: bt90 <[email protected]>

* chore(gui, man, authors): update docs, translations, and contributors

* chore: systematic syncthing_build_info metric

Signed-off-by: Jakob Borg <[email protected]>

* chore(stdiscosrv): adjust desired seen and unseen rate separately

Signed-off-by: Jakob Borg <[email protected]>

* chore(stdiscosrv): optionally delay shutdown

Signed-off-by: Jakob Borg <[email protected]>

* chore(stdiscosrv): smooth retry-after delays over a slightly larger normal distribution

Signed-off-by: Jakob Borg <[email protected]>

* build: extract github.ref_name expression to env mapping (syncthing#10624)

Signed-off-by: Chris Nyhuis <[email protected]>

* fix(protocol): limit size of incoming request messages (syncthing#10629)


Signed-off-by: Jakob Borg <[email protected]>

* build: pin 20 third-party actions to immutable commit SHAs (syncthing#10625)

fix: pin 20 third-party actions to immutable commit SHAs

Signed-off-by: Chris Nyhuis <[email protected]>

* build: have dependabot group PRs and use cooldown (syncthing#10630)

Signed-off-by: Jakob Borg <[email protected]>

* feat(gui, config): support simple folder grouping (fixes syncthing#2070) (syncthing#10563)

Adds a very simple way to group up folders to help with organising from
the GUI. 

Signed-off-by: Ben Norcombe <[email protected]>

* docs: add release notes for 2.1

Signed-off-by: Jakob Borg <[email protected]>

* policy: pushing invalidates PR approval

Signed-off-by: Jakob Borg <[email protected]>

* fix(gui): don't show local device under remote devices (ref syncthing#10563) (syncthing#10631)

### Purpose

Regression was introduced in PR syncthing#10563 due to new devices grouping
feature not utlising the otherDevices utility function to ensure the
local device is not shown in the remote devices list

### Testing

Open web GUI and ensure your local device isn't listed under Remote
Devices

### Screenshots

Regression before fix 

<img width="589" height="601" alt="Screenshot_20260407_202526"
src="https://github.com/user-attachments/assets/ffa315e4-f901-4d0c-8755-15b0c31464b3"
/>

Fix

<img width="598" height="555" alt="Screenshot_20260407_202656"
src="https://github.com/user-attachments/assets/8f0721c0-3fd2-4ae5-9db5-23c0d46c268e"
/>


### Documentation

N/A

## Authorship

Ben Norcombe [[email protected]](mailto:[email protected])

Signed-off-by: Ben Norcombe <[email protected]>
Co-authored-by: Jakob Borg <[email protected]>

* fix(gui): order folders alphabetically and ensure local device stays hidden (ref syncthing#10563, ref syncthing#10631)

### Purpose

There were some additional regression created during syncthing#10563 and syncthing#10631 which are:

* Folders were not being ordered by their label within their group
* Local device could still show up randomly with the list of remote devices

The respective fixes in this PR does the following:

* Ensure sorting of the grouped folders (and devices) are done by group name (the top level map key) and then by the specified nested object property or a fallback property if specified property value is empty. So in the case of the folders it's `label` and device is `name`.
* When populating the `devicesGrouped` using `$scope.otherDevices`, do this within a watcher on `$scope.myID` as this is what `$scope.otherDevices` relies on to determine what is a remote device. This is required because `$scope.myID` might not be populated yet given the indeterministic call order being made to `refreshSystem` and `refreshConfig`.

### Testing

Populate folders and devices into different groups, and ensure the ordering is correct and the local device is not showing in remote devices even after many, many refreshes on the UI or restarts of syncthing entirely.

### Screenshots

Before the fix

<img width="1108" height="951" alt="Screenshot_20260409_083910" src="https://github.com/user-attachments/assets/6eb8cacc-5924-4612-aa70-29ed4f691233" />

After the fix

<img width="1090" height="934" alt="Screenshot_20260409_084553" src="https://github.com/user-attachments/assets/f5b74391-228a-43d3-b5ee-433958236d84" />

### Documentation

N/A

## Authorship

Ben Norcombe [[email protected]](mailto:[email protected])

* chore(gui, man, authors): update docs, translations, and contributors

* chore(gui, man, authors): update docs, translations, and contributors

* chore: trivial fixes (syncthing#10650)

... which keep getting filed by AI agents.

Closes syncthing#10649, closes syncthing#10486, closes syncthing#10648, closes syncthing#10499, closes
syncthing#10647, closes syncthing#10635, closes syncthing#10636, closes syncthing#10607.

---------

Signed-off-by: Jakob Borg <[email protected]>

* chore(model): more efficient tracking of renames during scan (syncthing#10653)

* fix(gui): fallback to folder ID when label is empty in remove dialog (syncthing#10657)

## Summary

Fixes issue syncthing#10458: When removing a folder without a Folder Label, the
confirmation dialog now shows the folder ID instead of an empty string.

### Before
> Are you sure you want to remove folder **?**

### After  
> Are you sure you want to remove folder **dnjdr-hssze**?

### Changes

Modified `gui/default/syncthing/folder/removeFolderDialogView.html`:
```html
<!-- Before -->
<p translate translate-value-label="{{currentFolder.label}}">

<!-- After -->
<p translate translate-value-label="{{currentFolder.label || currentFolder.id}}">
```

### Testing

1. Create a folder without a label
2. Open the folder edit dialog
3. Click remove
4. Verify the confirmation dialog shows the folder ID instead of blank

Fixes syncthing#10458

Signed-off-by: RealCharlesChia <[email protected]>

* chore(model): deflake cluster config tests (syncthing#10662)

These have been flaky for a long time, seemingly because the multiple
connection code slightly changed the timing of cluster config sending by
moving them to the connection promotion loop. This adds some resiliency
to that, instead of assuming that the CC:s will be immediately available
after adding the connection.

---------

Signed-off-by: Jakob Borg <[email protected]>

* chore(model): deflake TestCompletionEmptyGlobal (syncthing#10663)

There was a race condition where using IndexUpdate would trigger a pull,
which would sync the delete we are looking for, making the completion
100%. By doing the insert directly into the database we are not
triggering these things and get the expected completion percentage
always.

Signed-off-by: Jakob Borg <[email protected]>

* chore(scanner): deflake TestStopWalk (syncthing#10664)

The test expected the stopped scanner to produce at most numHashers
additional results, but there's also the case where a directory is
encountered (which doesn't require hashing) and sent directly.

Signed-off-by: Jakob Borg <[email protected]>

* fix(gui): fix tabs visually disabled but still clickable during ignore patterns setup (fixes syncthing#10634) (syncthing#10651)

### Purpose

Fixes issue syncthing#10634.

### Testing

Manually tested by reproducing the issue:

- Created a new folder with "Add ignore patterns" enabled
- Verified that after saving, only the "Ignore Patterns" tab remains
accessible
- Confirmed that other tabs are visually disabled and no longer
clickable

### Screenshots

No visible UI changes.

### Explanation of the Fix

**Cause**

The issue was caused by only visually disabling tabs in the UI by
setting
their `href` attribute to an empty string (`href=""`). This made the
tabs
appear disabled, but they were still clickable, leading to confusing
behavior
where users could interact with the tabs without any actual navigation.

**Fix**

- Introduced `isFolderTabDisabled` to centralize the logic for
determining
  whether a tab should be disabled
- Added `onFolderTabClick` to prevent interaction with disabled tabs
- Updated the HTML to remove tab behavior (such as `data-toggle="tab"`
and
  `href`) when a tab is disabled

### Documentation

No documentation changes required.

Signed-off-by: JRNitre <[email protected]>
Co-authored-by: Jakob Borg <[email protected]>

* build: parallelise linux builds slightly (syncthing#10666)

They currently take like 25 minutes. This reduces that to approximately
a third, wall-clock wise.

Signed-off-by: Jakob Borg <[email protected]>

* chore(api): deflake TestHTTPLogin on Windows (syncthing#10667)

Hopefully deflakes TestHTTPLogin on Windows, where it currently often
times out, presumably in the config saving stage after already having
started a shutdown of the API and being CPU constrained due to password
hashing.

---------

Signed-off-by: Jakob Borg <[email protected]>

* fix(strelaysrv): properly use bind address for outgoing requests (fixes syncthing#10658) (syncthing#10659)

This was lost in syncthing#7217 a while back.

---------

Signed-off-by: Jakob Borg <[email protected]>

* fix(strelaypoolsrv): correct remote address logging

Signed-off-by: Jakob Borg <[email protected]>

* fix(strelaypoolsrv): retry "not found" errors in registration check

We presumably always intended to retry these, but we didn't.

Relates to syncthing#10658.

Signed-off-by: Jakob Borg <[email protected]>

* feat: make http session cookie path & duration configurable (fixes syncthing#10522) (syncthing#10632)


Signed-off-by: Vikram Vaswani <[email protected]>
Signed-off-by: Jakob Borg <[email protected]>
Co-authored-by: Jakob Borg <[email protected]>

* feat(dialer): add HTTP/HTTPS proxy support via CONNECT (syncthing#10572)

Register HTTP and HTTPS proxy dialers and implement CONNECT-based
tunneling for HTTP proxies.

The new dialer supports:
- Plain HTTP proxies using CONNECT
- HTTPS proxies by performing a TLS handshake before CONNECT
- Optional basic authentication via Proxy-Authorization (with a warning
when creds are used over cleartext HTTP)

This allows all_proxy to be set to http:// or https:// URLs, enabling
data transfer through HTTP(S) proxies.

### Purpose

Allow peers to connect using HTTP Proxies (CONNECT)

### Testing

Tested with both HTTP and HTTPS proxy connection, using both no auth and
plain authentication.

### Screenshots

No visual change

### Documentation

syncthing/docs#987

## Authorship

Your name and email will be added automatically to the AUTHORS file
based on the commit metadata.

---------

Signed-off-by: Luiz Angelo Daros de Luca <[email protected]>
Signed-off-by: Jakob Borg <[email protected]>
Co-authored-by: Jakob Borg <[email protected]>

* feat: make block indexing configurable (syncthing#10608)

This adds a new folder-level configuration `FullBlockIndex`. It controls
whether we maintain the block index for a given folder -- currently
that's always true, now it becomes possible to turn off. The block index
is used for lookup of blocks across files and folders. Effectively, when
syncing a change, for each block, we check:

1. Is the block already present in the old version of the file? If so,
we can reuse (copy) it without network transfer. **This check is always
possible.**
2. Is the block already present in any other file in this folder or
other folders? If so we can copy it. **This check is only possible with
the full block index.**
3. We must transfer the block over the network.

Maintaining the full block index is costly in time, I/O and database
size. With this PR, maintaining the full block index becomes the default
for send-receive and receive-only folders only, with it disabled for
send-only and receive-encrypted folders. The block index is never useful
for encrypted folders, as blocks are encrypted separate for each file.
It is also not useful for send-only folders by themselves, though the
data in the send-only folder could be reused by other receive-type
folders if it were enabled.

For very large folders it may make sense to disable the full block index
regardless of folder type and just accept the resulting decrease in data
reuse.

Disabling or enabling the option in the GUI causes the index to be
destroyed or rebuilt accordingly.

syncthing/docs#1005

---------

Signed-off-by: Jakob Borg <[email protected]>

* docs: release notes for 2.1

Signed-off-by: Jakob Borg <[email protected]>

* build: create GH release as draft, then publish

Signed-off-by: Jakob Borg <[email protected]>

* chore(gui, man, authors): update docs, translations, and contributors

* chore(api): use ldap package escape functions (syncthing#10672)

Instead of our own variants, which were mostly but not 100% identical.

---------

Signed-off-by: Jakob Borg <[email protected]>

* fix(stdiscosrv): only read certificate proxy headers with --http (syncthing#10674)

These headers should not be inspected when running with a TLS listener.

Additionally, we should really enable them individually instead of
trusting the proxy to filter out the unused variants, but baby steps.

Reported by multiple AI vuln scanners.

Signed-off-by: Jakob Borg <[email protected]>

* build: only run the periodic build jobs in the syncthing org (syncthing#10675)

* fix(stdiscosrv): do graceful shutdown on SIGTERM

Signed-off-by: Jakob Borg <[email protected]>

* chore(gui, man, authors): update docs, translations, and contributors

* build(deps): update dependencies (syncthing#10683)

Signed-off-by: Jakob Borg <[email protected]>

* chore(model): slightly improve handling of pulling empty blocks (syncthing#10679)

In the common case (sparse files enabled, not reusing old data) we'd
optimise away pulling & writing zero blocks. However in the corner cases
we'd go through the whole processing of pulling the block over the
network which is of course entirely unnecessary.

Now, instead, always take an optimised path for all-zeroes blocks. In
the clean case we do nothing, otherwise we materialise a block of zeroes
and write it directly.

---------

Signed-off-by: Jakob Borg <[email protected]>

* chore(gui): upgrade jQuery to 3.7.1 to fix CVE-2020-11022, CVE-2020-11023, CVE-2015-9251 (syncthing#10673)

## Summary

- Replace vendored `jquery-2.2.2.js` with `jquery-3.7.1.js` in
`gui/default/vendor/jquery/`
- Update script reference in `gui/default/index.html` to point to the
new file
- Update CDN reference in `cmd/infra/strelaypoolsrv/gui/index.html` from
`jquery-2.1.4.min.js` to `jquery-3.7.1.min.js`

## Why

The previously used jQuery versions (2.2.2 and 2.1.4) are vulnerable to
three known CVEs:

| CVE | Description | Fixed in |
|-----|-------------|----------|
| CVE-2015-9251 | XSS via cross-domain Ajax requests with non-text
content types | jQuery 3.0.0 |
| CVE-2020-11022 | XSS when passing HTML containing `<option>` elements
to manipulation methods | jQuery 3.5.0 |
| CVE-2020-11023 | XSS via passing HTML from untrusted sources to
manipulation methods | jQuery 3.5.0 |

jQuery 3.7.1 is the latest stable release and resolves all three.

## Compatibility notes

The GUI code was audited for jQuery 2→3 breaking changes. No removed
APIs are used:
- `.success()` / `.error()` calls throughout the codebase are
**AngularJS `$http`** promise methods, not jQuery — unaffected
- `.bind('beforeunload', ...)` is deprecated in jQuery 3 but not removed
— still works
- No usage of `.size()`, `.load()` event shorthand, `jQuery.isFunction`,
or `$.type()`

---------

Signed-off-by: Umer Azaz <[email protected]>
Co-authored-by: Jakob Borg <[email protected]>

* chore(fs): remove unused SymlinksSupported() method (syncthing#10684)

💀

Signed-off-by: Jakob Borg <[email protected]>

* chore(gui, man, authors): update docs, translations, and contributors

* build: fix draft/published status for new releases

Signed-off-by: Jakob Borg <[email protected]>

* build: temporarily disable illumos for release

They let the domain/DNSSEC expire, I need the build to pass.

Signed-off-by: Jakob Borg <[email protected]>

* build: be explicit about workflow permissions (syncthing#10690)

Signed-off-by: Jakob Borg <[email protected]>

* build: remove environment annotations

Signed-off-by: Jakob Borg <[email protected]>

* chore(gui, man, authors): update docs, translations, and contributors

* chore(stdiscosrv): prewarm counters at startup

Signed-off-by: Jakob Borg <[email protected]>

* chore(stcrashreceiver): improve logging

Signed-off-by: Jakob Borg <[email protected]>

* fix(stcrashreceiver): allow extra pre/post data in version line

Signed-off-by: Jakob Borg <[email protected]>

* fix(syncthing): properly upgrade via REST when Syncthing is running (fixes syncthing#10697) (syncthing#10699)

The locking logic for upgrades got inverted in the lockfile changes. If
we got the lock it means Syncthing wasn't already running, so we can do
a direct upgrade. If we failed to get the lock it means Syncthing was
running and we should tell the REST interface to do the upgrade.

Signed-off-by: Jakob Borg <[email protected]>

* fix(versioner): ensure user read/write/execute on archived dirs (fixes syncthing#10532) (syncthing#10696)

This makes sure the user running Syncthing, and hence Synchting itself,
has read/write/execute on directories in .stversions. The other
permission bits remain copied from the source directory, ensuring
whatever group and other permissions were set remain in effect.

Closes syncthing#10695.

---------

Signed-off-by: Jakob Borg <[email protected]>

* fix(discover): only announce wildcard for TCP punching when listening on wildcard address (fixes syncthing#10503) (syncthing#10691)

If we aren't announcing e.g. tcp://0.0.0.0:22000 then also do not
announce tcp://0.0.0.0:0.

Signed-off-by: Jakob Borg <[email protected]>

* chore(syncthing): include runtime context in GC crashes (syncthing#10702)

The runtime prints a lot of context for crashes due to bad pointers etc,
which is required to understand the crash, but this context comes before
the `fatal error: ...` line. Currently those lines get filtered out and
not included in the crash report. This change modifies the criteria so
that we start collecting crash data also at a line that begins with
`runtime:`, and tweaks the parsing later to look for the specific
`panic:` or `fatal error:` which may come later as the subject.

---------

Signed-off-by: Jakob Borg <[email protected]>

* build(deps): x/net for govulncheck (syncthing#10703)

Signed-off-by: Jakob Borg <[email protected]>

* chore(stcrashreceiver): metrics on ignore matches

Signed-off-by: Jakob Borg <[email protected]>

* chore(stcrashreceiver): better source cache & metrics

Signed-off-by: Jakob Borg <[email protected]>

* chore(stcrashreceiver): compact diskstore in-memory representation

Signed-off-by: Jakob Borg <[email protected]>

* chore(stcrashreceiver): add profiler on metrics port

Signed-off-by: Jakob Borg <[email protected]>

* chore(ur): move structs to reduce dependency chain

lib/ur brings in a lot of dependencies we don't need in e.g.
stcrashreceiver, who only needs the small failure reporting structs.
Make those part of the lean `contract` package instead.

Signed-off-by: Jakob Borg <[email protected]>

* build: let infra containers builds fail individually

Signed-off-by: Jakob Borg <[email protected]>

* Revert "build: temporarily disable illumos for release"

This reverts commit c0c401e.

* fix(stcrashreceiver): close source loader responses on errors (syncthing#10704)

Fix a response body leak in `githubSourceCodeLoader.Load` where the body
was not closed when the HTTP status was non-200.

Signed-off-by: Yasuhiro Matsumoto <[email protected]>

* chore: use path/filepath for local file system paths (syncthing#10705)

### Purpose

`path` is for slash-separated paths (URLs, BEP protocol); local file
system paths should use `path/filepath`. Fixed in
`cmd/stdiscosrv/database.go` (3 sites) and
`internal/db/sqlite/db_test.go` (1 site).

### Testing

`go build ./cmd/stdiscosrv/...` and `go vet` pass.

Signed-off-by: Yasuhiro Matsumoto <[email protected]>

* chore(gui, man, authors): update docs, translations, and contributors

* fix(protocol): handle zero-size requests (fixes syncthing#10709) (syncthing#10710)

- Allow zero-sized requests since they are sent by all current versions
of Syncthing.
- Stop sending zero-sized requests since that's stupid.

---------

Signed-off-by: Jakob Borg <[email protected]>

* fix: resolve PR CI failures

---------

Signed-off-by: Jakob Borg <[email protected]>
Signed-off-by: Marcus B Spencer <[email protected]>
Signed-off-by: prathik8794 <[email protected]>
Signed-off-by: Tommy van der Vorst <[email protected]>
Signed-off-by: Maxwell G <[email protected]>
Signed-off-by: Shivam <[email protected]>
Signed-off-by: maishivamhoo123 <[email protected]>
Signed-off-by: epifeny <[email protected]>
Signed-off-by: steadytao <[email protected]>
Signed-off-by: Michael Wang <[email protected]>
Signed-off-by: Val Markovic <[email protected]>
Signed-off-by: Weixie Cui <[email protected]>
Signed-off-by: bt90 <[email protected]>
Signed-off-by: Chris Nyhuis <[email protected]>
Signed-off-by: Ben Norcombe <[email protected]>
Signed-off-by: RealCharlesChia <[email protected]>
Signed-off-by: JRNitre <[email protected]>
Signed-off-by: Vikram Vaswani <[email protected]>
Signed-off-by: Luiz Angelo Daros de Luca <[email protected]>
Signed-off-by: Umer Azaz <[email protected]>
Signed-off-by: Yasuhiro Matsumoto <[email protected]>
Co-authored-by: Jakob Borg <[email protected]>
Co-authored-by: Syncthing Release Automation <[email protected]>
Co-authored-by: Marcus B Spencer <[email protected]>
Co-authored-by: bt90 <[email protected]>
Co-authored-by: Prathik P Kulkarni <[email protected]>
Co-authored-by: Tommy van der Vorst <[email protected]>
Co-authored-by: Maxwell G <[email protected]>
Co-authored-by: Shivam Kumar <[email protected]>
Co-authored-by: Epifeny <[email protected]>
Co-authored-by: epifeny <[email protected]>
Co-authored-by: Tao <[email protected]>
Co-authored-by: Michael Wang 汪東陽 <[email protected]>
Co-authored-by: Val Markovic <[email protected]>
Co-authored-by: cui <[email protected]>
Co-authored-by: dagecko <[email protected]>
Co-authored-by: Ben Norcombe <[email protected]>
Co-authored-by: RealCharlesChia <[email protected]>
Co-authored-by: JRNitre <[email protected]>
Co-authored-by: vvaswani <[email protected]>
Co-authored-by: Luiz Angelo Daros de Luca <[email protected]>
Co-authored-by: Umer-Azaz <[email protected]>
Co-authored-by: mattn <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants