Preface¶
The plugin ecosystem of DeepSeek Harness (DSH) allows developers to exercise fine-grained control over the client interface. In a new session, the official default layout logic is: the input box is vertically centered in the initial state, and switches to a conversation state after the first message is sent, causing the input box to drop to the bottom of the window. This shift from center to bottom results in a visual jump of the input box when sending a message.
The purpose of dsh-plugin-composer-align is to pin the input box on the “New Session” page to the exact same position as in the conversation state. Regardless of whether a message is sent, the x, y coordinates and dimensions of the input box remain constant, thereby eliminating the displacement.
Plugin Information¶
- Name: dsh-plugin-composer-align
- Maintainer: daoyu1993-lab
- Category: Client
- License: MIT
- Core Value: Pins the new session input box position, eliminating the input box displacement after sending the first message.
Core Functions¶
This plugin achieves the following goals through pure CSS modifications:
- Fixed Position: The position of the input box on the new session page is fixed and no longer jumps as messages are sent.
- Visual Alignment: The geometric dimensions (width, height, y-axis coordinates) of the input box in the new session state remain consistent with the conversation state.
- Padding Support: Supports padding for the usage row, retaining a 26px reserved space at the bottom.
- No Build Step: Only modifies the style layer; involves no component building or logic registration.
Installation and Activation¶
The plugin supports installation via the command line. Simply choose one of the following methods:
dsh plugin --profile desktop add "github:daoyu1993-lab/dsh-plugin-composer-align"
Once installation is complete, refresh the page to apply the changes.
Typical Usage¶
- Refresh Page: After initial installation or configuration changes, simply refresh the page to see that the input box position no longer jumps.
- Source Code Modification: If you need to adjust styles, modify the source code, save, and refresh the page.
- Real-time Hot Reload: If
dsh-hmris configured, you can use it to pick up patch file changes in real-time without restarting the application.
Notes¶
- Browser Compatibility: The plugin relies on the CSS
:has()selector and requires Chrome 105+ or Safari 15.4+. - Pure Visual Modification: This plugin only modifies the visual layer (CSS) and does not register new slots or interact logically with official components.
- Bottom Padding: There will be 26px of whitespace at the bottom of the new session page; this is to reserve space for the usage row.
- Special Cases: In the conversation state, if the
dockis completely empty (no usage row or context gauge), the input box will be slightly higher than the official default. However, this precisely eliminates the official default displacement, so in conversation states with a usage row, the geometric position is completely consistent with the official default.
Conclusion¶
Through a set of style sheets, this plugin forces the layout of the new session state to align with the conversation state, solving the pain point of input box displacement. For users who need to debug or interact on the new session page for extended periods, it provides a more stable visual experience.