47 Commits
Author SHA1 Message Date
Claudio Cambra 58f0c15cd2 fix(macOS): compile remaining native application sources with ARC
Enable ARC for Cocoa startup, local network permission probes, FinderSync
services and XPC, the File Provider service, and Sparkle.

Keep application startup in a scoped autorelease pool, balance opaque XPC
references, and detach native delegates before their C++ owners disappear.
Add regression coverage for native object lifetime, queued replies,
cancellation, teardown, and late callbacks.

Assisted-by: Codex:GPT-6
Signed-off-by: Claudio Cambra <[email protected]>
2026-10-20 00:53:16 +08:00
Claudio Cambra 7be39ee94d docs(macOS): Clarify ownership for files not yet using ARC
Require ARC for new Objective-C sources while preserving manual reference
counting in existing files until they are migrated separately.

Assisted-by: Codex:GPT-6
Signed-off-by: Claudio Cambra <[email protected]>
2026-10-19 23:24:28 +08:00
Claudio Cambra c5ac745a39 fix(macOS): Ensure agents know Obj-C code should be built with ARC enabled
Signed-off-by: Claudio Cambra <[email protected]>
2026-10-16 18:08:50 +08:00
Claudio Cambra 193da042c6 fix(macOS): Document use of ARC in AGENTS.md
Signed-off-by: Claudio Cambra <[email protected]>
Assisted-by: Codex:GPT-6
2026-10-08 19:32:25 +08:00
Rello f763a7be8a Update agent guidelines on contributions
Enable more efficient agent workflows

Signed-off-by: Rello <[email protected]>
2026-10-02 13:57:54 +02:00
Matthieu Gallien 99722a2d91 chore: makes agents write better code by default before reviews
Signed-off-by: Matthieu Gallien <[email protected]>
2026-09-22 16:30:25 +02:00
Iva Horn 4f44f03544 feat(file-provider): Synchronization blocking
Assisted-by: Claude Code:claude-opus-5
Signed-off-by: Iva Horn <[email protected]>
2026-09-11 12:59:35 +02:00
Claudio Cambra 26a9a7e905 fix(agents): Generalize GUI testing guidance
Signed-off-by: Claudio Cambra <[email protected]>
2026-09-10 23:26:05 +08:00
Claudio Cambra 768e3a7df5 Merge pull request #10672 from nextcloud/work/docs-vocab
fix(docs): Expand terminology and documentation guidance
2026-09-10 22:28:47 +08:00
Rello 78139906eb fix(i18n): document translation placeholders
Signed-off-by: Rello <[email protected]>
Assisted-by: Codex:GPT-5
2026-09-09 10:49:58 +02:00
Matthieu GallienandClaude Sonnet 5 d7de57ce1f docs(agents): require repo-wide clang-format and mandatory clang-tidy
Broaden the clang-format requirement beyond ./src to all C++ source
files, and add a mandatory run-clang-tidy -fix pass that must report
no further changes before a task is considered done.

Signed-off-by: Matthieu Gallien <[email protected]>
Co-Authored-By: Claude Sonnet 5 <[email protected]>
2026-09-03 15:14:12 +02:00
Claudio Cambra 15dc262ae2 fix(agents): Guide agents to follow proper conduct when working on major features
Signed-off-by: Claudio Cambra <[email protected]>
2026-09-02 17:07:12 +08:00
Matthieu Gallien 28d5cebad8 docs(agents): require clang-format after C++ edits
Signed-off-by: Matthieu Gallien <[email protected]>
Assisted-by: ClaudeCode:claude-sonnet-5
2026-08-25 21:02:41 +02:00
Claudio Cambra 78417b5211 fix(docs): Commenting guidelines
Signed-off-by: Claudio Cambra <[email protected]>
2026-08-25 22:38:34 +08:00
Claudio Cambra 219ab287ed fix(docs): Add terminology guide
Signed-off-by: Claudio Cambra <[email protected]>
2026-08-25 22:14:29 +08:00
Rello dd01cad164 revert: update agent guidelines on contributions
This reverts commit a3db36bd4f.

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

Assisted-by: Codex:GPT-5
2026-08-23 11:36:44 +02:00
Rello 4f1ebeb76e revert: clarify DCO signing requirements
This reverts commit 76bd5596ab.

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

Assisted-by: Codex:GPT-5
2026-08-23 11:36:31 +02:00
Rello 76bd5596ab Clarify DCO signing requirements
Clarified that only human contributors can add the 'Signed-off-by' trailer in the DCO section.

Signed-off-by: Rello <[email protected]>
2026-08-22 19:18:07 +02:00
Rello a3db36bd4f Update agent guidelines on contributions
Removed instructions for adding 'Signed-off-by' tags and writing PR descriptions autonomously.

Signed-off-by: Rello <[email protected]>
2026-08-22 19:13:02 +02:00
Claudio Cambra 1845b83209 fix(agents): Document how to properly acquire desktop client logs
Signed-off-by: Claudio Cambra <[email protected]>
2026-08-13 15:07:42 +08:00
Claudio Cambra 8f8808ddb1 fix(agents): ensure agents follow proper testing practices
Signed-off-by: Claudio Cambra <[email protected]>
2026-07-24 21:16:30 +08:00
Claudio Cambra 3181718eee chore: Add performance improvement claim requirements to AGENTS.md
Signed-off-by: Claudio Cambra <[email protected]>
2026-07-20 09:13:33 +02:00
Iva Horn 0f6f6d6e5f chore(macOS): Split up trayaccountpopup_mac.mm into dedicated source code files and added documentation
Signed-off-by: Iva Horn <[email protected]>
2026-07-08 13:06:00 +02:00
Camila Ayres 2c4cafe3c8 chore(agents): add guideline for verifiable claims in contributions.
Emphasize the importance of verifiable claims in PR descriptions and reviews.

Signed-off-by: Camila Ayres <[email protected]>
2026-06-16 09:45:34 +02:00
Camila Ayres 5d5423bb92 fix(agents): correct from AGPL to GPL.
Signed-off-by: Camila Ayres <[email protected]>
2026-06-08 13:40:35 +02:00
Matthieu Gallien e71375ef54 fix: fix review comments
Signed-off-by: Matthieu Gallien <[email protected]>
2026-06-04 09:40:09 +02:00
Matthieu Gallien 09f968a8f1 feat(agents): add some more details on what we want for c++ code
Signed-off-by: Matthieu Gallien <[email protected]>
2026-06-04 09:40:09 +02:00
Camila Ayres 2b4306c072 chore(agents): update license header instructions.
Signed-off-by: Camila Ayres <[email protected]>
2026-06-03 17:16:58 +02:00
Camila Ayres 9ead024b1a chore(agents): update information about commit messages and signing.
Signed-off-by: Camila Ayres <[email protected]>
2026-06-03 17:16:48 +02:00
Camila Ayres 41a0a38145 chore(agents): add section Nextcloud Contribution Policy.
Signed-off-by: Camila Ayres <[email protected]>
2026-06-03 17:16:24 +02:00
Iva Horn 597f4db595 feat(file-provider): Run time switch for debug logging
Signed-off-by: Iva Horn <[email protected]>
2026-04-24 16:21:26 +02:00
Iva Horn 466a25dafb feat: Extended AGENTS.md with details about logging in file provider extension code
Signed-off-by: Iva Horn <[email protected]>
2026-04-24 16:21:26 +02:00
Iva Horn 2ea04ceec3 chore: Updated AGENTS.md
Signed-off-by: Iva Horn <[email protected]>
2026-04-14 11:38:39 +02:00
Iva Horn c447fdbcb4 feat(macOS): Replace UNIX sockets with XPC
Replace the UNIX domain socket IPC between the desktop client and the
macOS Finder Sync extension with Apple's native XPC mechanism.

Motivation:

The socket-based approach used a custom line-based text protocol over
UNIX domain sockets, requiring manual parsing, hand-managed connection
lifecycles, and offering no built-in security validation. XPC is Apple's
recommended IPC for app extensions, providing type-safe method dispatch,
automatic lifecycle management, and code-signing verification.

Architecture:

Two Objective-C protocols define a bidirectional XPC contract:

- FinderSyncAppProtocol (extension -> app): file/folder status queries,
  context menu requests, and command execution.
- FinderSyncProtocol (app -> extension): path registration, status badge
  pushes, localized string delivery, and menu item streaming.

On the app side, FinderSyncXPC manages the XPC listener and broadcasts
to all connected extensions. FinderSyncService implements the app
protocol by adapting calls to the existing cross-platform SocketApi
business logic via a ResponseCapturingListener, avoiding any
reimplementation of sync status or menu command handling. Thread safety
across XPC and Qt threads is ensured via QMetaObject::invokeMethod with
blocking queued connections.

On the extension side, FinderSyncXPCManager handles connection setup,
reconnection with exponential backoff, and status caching. FinderSync
(the FIFinderSync subclass) delegates all communication to the XPC
manager and bridges Finder's synchronous menuForMenuKind: API to XPC's
async model using NSCondition.

Security is enforced through macOS entitlements (mach-register and
mach-lookup for the FinderSyncService name) and a server-side command
whitelist that restricts executable commands to a predefined set.

Removed:

- NCDesktopClientSocketKit framework (LocalSocketClient, LineProcessor)
- FinderSyncSocketLineProcessor and FileProviderSocketLineProcessor
- FileProviderSocketServer and FileProviderSocketController

Resolves #9430

Signed-off-by: Iva Horn <[email protected]>
2026-03-25 13:31:19 +01:00
Iva Horn b279a24892 fix(macOS): Fix developer build
- Changed KDE Craft build directory of mac-crafter to enable Spotlight indexing
- Copy debug symbol bundles into build directories
- Flatten the broken debug symbol bundles produced by KDE Craft
- Updated AGENTS.md

Signed-off-by: Iva Horn <[email protected]>
2026-03-23 16:35:32 +01:00
Iva Horn c1d52c4b89 feat(macOS): Consolidated Xcode Workspace (#9435)
- Derived data directory ".xcode" for Xcode workspace in project root.
- Mac crafter build directory ".mac-crafter" in project root.
- Added all Swift packages and Xcode projects to workspace.
- Added some important top-level files and other directories.
- Removed obsolete Xcode workspace in shell integration directory.
- Removed obsolete OwnCloudFinderSync folder.
- Updated AGENTS.md.
- Updated README.md.
- Renamed NextcloudDev scheme to Nextcloud Developer Client.
- Fixed Xcode not being abled to resolve breakpoints because the dSYM files are in a dot-directory which is not indexed by Spotlight. mac-crafter now copies the debug symbols manually into the app bundle so they are found.

Signed-off-by: Iva Horn <[email protected]>
2026-02-23 11:22:33 +01:00
Iva Horn 6608f9489d feat(macOS): Added instructions to AGENTS.md which explain how to verify specific targets of the client still build successfully after source code changes.
Signed-off-by: Iva Horn <[email protected]>
2026-02-11 21:07:45 +01:00
Iva Horn 03d0ddf9a2 fix: Mention iOS and Android as irrelevant in AGENTS.md
Signed-off-by: Iva Horn <[email protected]>
2026-02-11 15:05:03 +01:00
Iva Horn 78b2b6714b Merge pull request #9436 from nextcloud/i2h3/fix/9417-domain-removal-mode
Preserve dirty user data on domain removal
2026-02-10 15:55:00 +01:00
Iva Horn 4107f3c131 fix(file-provider): Preserve dirty user data on domain removal (#9417)
Signed-off-by: Iva Horn <[email protected]>
2026-02-10 14:30:49 +01:00
Iva Horn 55d42d5569 fix(macOS): Persistent access to security scoped synchronization folders
Signed-off-by: Iva Horn <[email protected]>
2026-02-10 14:23:56 +01:00
Iva Horn 36cb343e7b chore: Updated AGENTS.md
Signed-off-by: Iva Horn <[email protected]>
2026-01-27 10:07:44 +01:00
Rello 2525405f95 Update AGENTS.md
Signed-off-by: Rello <[email protected]>
2025-06-30 11:15:36 +02:00
Rello 7fe48d986e Agent instructions on translations
Signed-off-by: Rello <[email protected]>
2025-06-30 11:15:36 +02:00
Rello 98956e4c19 Update AGENTS.md
make AI follow Conventional Commits specification

Signed-off-by: Rello <[email protected]>
2025-06-26 14:40:57 +02:00
Rello 09710af23f Update AGENTS.md
Signed-off-by: Rello <[email protected]>
2025-06-26 13:12:07 +02:00
Rello 517ba363e0 Create AGENTS.md
Signed-off-by: Rello <[email protected]>
2025-06-26 13:12:07 +02:00