Skip to content

refactor(linux-v4): appserver to enable old comm server on all platforms#1853

Open
R-Gld wants to merge 3 commits intolinux-v4/mainfrom
linux-v4/fix-error-infolist-limit
Open

refactor(linux-v4): appserver to enable old comm server on all platforms#1853
R-Gld wants to merge 3 commits intolinux-v4/mainfrom
linux-v4/fix-error-infolist-limit

Conversation

@R-Gld
Copy link
Copy Markdown
Member

@R-Gld R-Gld commented Apr 27, 2026

No description provided.

@R-Gld R-Gld requested a review from ClementKunz April 27, 2026 15:06
@R-Gld R-Gld self-assigned this Apr 27, 2026
@R-Gld R-Gld requested a review from a team as a code owner April 27, 2026 15:06
Copilot AI review requested due to automatic review settings April 27, 2026 15:06
@R-Gld R-Gld added the Linux UI PR related to the new linux GUI label Apr 27, 2026
@R-Gld R-Gld requested review from herve-er and removed request for a team and ClementKunz April 27, 2026 15:10
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adjusts the IPC layer to (1) always enable the legacy (“old”) comm server in the server process and (2) align the ERROR_INFOLIST request between the Linux v4 frontend and the server by introducing and using a shared "limit" parameter key.

Changes:

  • Always enable OldCommServer via AppServer::useOldCommServer() across platforms.
  • Add a shared IPC parameter key msgParamLimit and use it in the server ErrorInfolistJob.
  • Update Linux v4 CommService::requestErrorInfoList() to send a bounded limit when requesting error info.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
src/server/comm/guijobs/errorinfolistjob.cpp Switches input param key to shared msgParamLimit; keeps output key as a local literal.
src/server/appserver.h Forces useOldCommServer() to always return true (legacy IPC enabled everywhere).
src/libcommon/comm.h Adds shared IPC parameter key msgParamLimit.
src/gui4/linux/app/services/commservice.cpp Sends limit parameter for ERROR_INFOLIST requests (bounded to 1000).

Comment on lines 26 to 28
// Output parameters keys
static const auto outParamsErrorInfo = "errorInfoList";

Copy link

Copilot AI Apr 27, 2026

Choose a reason for hiding this comment

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

outParamsErrorInfo duplicates the shared IPC key already defined in libcommon/comm.h (msgParamErrorInfoList). Since this job now relies on shared keys for input (msgParamLimit), consider using the shared constant for the output key as well to avoid drift between client/server protocol strings.

Copilot uses AI. Check for mistakes.
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@copilot apply changes based on this feedback

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Done in commit 630c370. Removed the local outParamsErrorInfo literal and replaced it with the shared msgParamErrorInfoList constant from libcommon/comm.h, which already has the same "errorInfoList" value. The Linux v4 client was already reading the response using msgParamErrorInfoList, so both sides now rely on the same shared constant.

Comment thread src/server/appserver.h
@sonarqubecloud
Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

GUI job Linux UI PR related to the new linux GUI XPC

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants